Documentation ¶
Index ¶
- Constants
- type GCPBotanist
- func (b *GCPBotanist) ApplyCreateHook() error
- func (b *GCPBotanist) ApplyDeleteHook() error
- func (b *GCPBotanist) CheckIfClusterGetsScaled() (bool, int, error)
- func (b *GCPBotanist) DeployAutoNodeRepair() error
- func (b *GCPBotanist) DeployBackupInfrastructure() error
- func (b *GCPBotanist) DeployInfrastructure() error
- func (b *GCPBotanist) DeployKube2IAMResources() error
- func (b *GCPBotanist) DestroyBackupInfrastructure() error
- func (b *GCPBotanist) DestroyInfrastructure() error
- func (b *GCPBotanist) DestroyKube2IAMResources() error
- func (b *GCPBotanist) GenerateAdmissionControlConfig() (map[string]interface{}, error)
- func (b *GCPBotanist) GenerateCalicoConfig() (map[string]interface{}, error)
- func (b *GCPBotanist) GenerateCloudConfigUserDataConfig() *common.CloudConfigUserDataConfig
- func (b *GCPBotanist) GenerateCloudProviderConfig() (string, error)
- func (b *GCPBotanist) GenerateClusterAutoscalerConfig() (map[string]interface{}, error)
- func (b *GCPBotanist) GenerateEtcdBackupSecretData() (map[string][]byte, error)
- func (b *GCPBotanist) GenerateEtcdConfig(string) (map[string]interface{}, error)
- func (b *GCPBotanist) GenerateKube2IAMConfig() (map[string]interface{}, error)
- func (b *GCPBotanist) GenerateKubeAPIServerConfig() (map[string]interface{}, error)
- func (b *GCPBotanist) GenerateKubeControllerManagerConfig() (map[string]interface{}, error)
- func (b *GCPBotanist) GenerateKubeSchedulerConfig() (map[string]interface{}, error)
- func (b *GCPBotanist) GenerateNginxIngressConfig() (map[string]interface{}, error)
- func (b *GCPBotanist) GetCloudProviderName() string
Constants ¶
const ( // ServiceAccountJSON is a constant for the key in a cloud provider secret that holds the Google service account. ServiceAccountJSON = "serviceaccount.json" // ProjectID is a constant for the key in a Google service account storing the project id. ProjectID = "project_id" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GCPBotanist ¶
type GCPBotanist struct { *operation.Operation CloudProviderName string VPCName string Project string MinifiedServiceAccount string }
GCPBotanist is a struct which has methods that perform GCP cloud-specific operations for a Shoot cluster.
func New ¶
func New(o *operation.Operation) (*GCPBotanist, error)
New takes an operation object <o> and creates a new GCPBotanist object.
func (*GCPBotanist) ApplyCreateHook ¶
func (b *GCPBotanist) ApplyCreateHook() error
ApplyCreateHook does currently nothing for GCP.
func (*GCPBotanist) ApplyDeleteHook ¶
func (b *GCPBotanist) ApplyDeleteHook() error
ApplyDeleteHook does currently nothing for GCP.
func (*GCPBotanist) CheckIfClusterGetsScaled ¶
func (b *GCPBotanist) CheckIfClusterGetsScaled() (bool, int, error)
CheckIfClusterGetsScaled does currently nothing for GCP.
func (*GCPBotanist) DeployAutoNodeRepair ¶
func (b *GCPBotanist) DeployAutoNodeRepair() error
DeployAutoNodeRepair deploys the auto-node-repair into the Seed cluster. It primary job is to repair unHealthy Nodes by replacing them by newer ones - Not needed on GCP yet. To be implemented later
func (*GCPBotanist) DeployBackupInfrastructure ¶
func (b *GCPBotanist) DeployBackupInfrastructure() error
DeployBackupInfrastructure kicks off a Terraform job which deploys the infrastructure resources for backup. TODO: implement backup functionality for GCP
func (*GCPBotanist) DeployInfrastructure ¶
func (b *GCPBotanist) DeployInfrastructure() error
DeployInfrastructure kicks off a Terraform job which deploys the infrastructure.
func (*GCPBotanist) DeployKube2IAMResources ¶
func (b *GCPBotanist) DeployKube2IAMResources() error
DeployKube2IAMResources - Not needed on GCP
func (*GCPBotanist) DestroyBackupInfrastructure ¶
func (b *GCPBotanist) DestroyBackupInfrastructure() error
DestroyBackupInfrastructure kicks off a Terraform job which destroys the infrastructure for backup. TODO: implement backup functionality for GCP
func (*GCPBotanist) DestroyInfrastructure ¶
func (b *GCPBotanist) DestroyInfrastructure() error
DestroyInfrastructure kicks off a Terraform job which destroys the infrastructure.
func (*GCPBotanist) DestroyKube2IAMResources ¶
func (b *GCPBotanist) DestroyKube2IAMResources() error
DestroyKube2IAMResources - Not needed on GCP.
func (*GCPBotanist) GenerateAdmissionControlConfig ¶
func (b *GCPBotanist) GenerateAdmissionControlConfig() (map[string]interface{}, error)
GenerateAdmissionControlConfig generates values which are required to render the chart admissions-controls properly.
func (*GCPBotanist) GenerateCalicoConfig ¶
func (b *GCPBotanist) GenerateCalicoConfig() (map[string]interface{}, error)
GenerateCalicoConfig - Not needed on GCP
func (*GCPBotanist) GenerateCloudConfigUserDataConfig ¶
func (b *GCPBotanist) GenerateCloudConfigUserDataConfig() *common.CloudConfigUserDataConfig
GenerateCloudConfigUserDataConfig generates values which are required to render the chart shoot-cloud-config properly.
func (*GCPBotanist) GenerateCloudProviderConfig ¶
func (b *GCPBotanist) GenerateCloudProviderConfig() (string, error)
GenerateCloudProviderConfig generates the GCE cloud provider config.
func (*GCPBotanist) GenerateClusterAutoscalerConfig ¶
func (b *GCPBotanist) GenerateClusterAutoscalerConfig() (map[string]interface{}, error)
GenerateClusterAutoscalerConfig - Not needed on GCP.
func (*GCPBotanist) GenerateEtcdBackupSecretData ¶
func (b *GCPBotanist) GenerateEtcdBackupSecretData() (map[string][]byte, error)
GenerateEtcdBackupSecretData generates the secret data for etcd-operator having credentials and config for backup infrastructure. TODO: implement backup functionality for GCP
func (*GCPBotanist) GenerateEtcdConfig ¶
func (b *GCPBotanist) GenerateEtcdConfig(string) (map[string]interface{}, error)
GenerateEtcdConfig returns the map of Cloud specific backup configuration required by etcd-operator. TODO: implement backup functionality for GCP
func (*GCPBotanist) GenerateKube2IAMConfig ¶
func (b *GCPBotanist) GenerateKube2IAMConfig() (map[string]interface{}, error)
GenerateKube2IAMConfig - Not needed on GCP.
func (*GCPBotanist) GenerateKubeAPIServerConfig ¶
func (b *GCPBotanist) GenerateKubeAPIServerConfig() (map[string]interface{}, error)
GenerateKubeAPIServerConfig generates the cloud provider specific values which are required to render the Deployment manifest of the kube-apiserver properly.
func (*GCPBotanist) GenerateKubeControllerManagerConfig ¶
func (b *GCPBotanist) GenerateKubeControllerManagerConfig() (map[string]interface{}, error)
GenerateKubeControllerManagerConfig generates the cloud provider specific values which are required to render the Deployment manifest of the kube-controller-manager properly.
func (*GCPBotanist) GenerateKubeSchedulerConfig ¶
func (b *GCPBotanist) GenerateKubeSchedulerConfig() (map[string]interface{}, error)
GenerateKubeSchedulerConfig generates the cloud provider specific values which are required to render the Deployment manifest of the kube-scheduler properly.
func (*GCPBotanist) GenerateNginxIngressConfig ¶
func (b *GCPBotanist) GenerateNginxIngressConfig() (map[string]interface{}, error)
GenerateNginxIngressConfig generates values which are required to render the chart nginx-ingress properly.
func (*GCPBotanist) GetCloudProviderName ¶
func (b *GCPBotanist) GetCloudProviderName() string
GetCloudProviderName returns the Kubernetes cloud provider name for this cloud.