Documentation ¶
Index ¶
- Constants
- type AzureBotanist
- func (b *AzureBotanist) ApplyCreateHook() error
- func (b *AzureBotanist) ApplyDeleteHook() error
- func (b *AzureBotanist) CheckIfClusterGetsScaled() (bool, int, error)
- func (b *AzureBotanist) DeployAutoNodeRepair() error
- func (b *AzureBotanist) DeployBackupInfrastructure() error
- func (b *AzureBotanist) DeployInfrastructure() error
- func (b *AzureBotanist) DeployKube2IAMResources() error
- func (b *AzureBotanist) DestroyBackupInfrastructure() error
- func (b *AzureBotanist) DestroyInfrastructure() error
- func (b *AzureBotanist) DestroyKube2IAMResources() error
- func (b *AzureBotanist) GenerateAdmissionControlConfig() (map[string]interface{}, error)
- func (b *AzureBotanist) GenerateCalicoConfig() (map[string]interface{}, error)
- func (b *AzureBotanist) GenerateCloudConfigUserDataConfig() *common.CloudConfigUserDataConfig
- func (b *AzureBotanist) GenerateCloudProviderConfig() (string, error)
- func (b *AzureBotanist) GenerateClusterAutoscalerConfig() (map[string]interface{}, error)
- func (b *AzureBotanist) GenerateEtcdBackupSecretData() (map[string][]byte, error)
- func (b *AzureBotanist) GenerateEtcdConfig(secretName string) (map[string]interface{}, error)
- func (b *AzureBotanist) GenerateKube2IAMConfig() (map[string]interface{}, error)
- func (b *AzureBotanist) GenerateKubeAPIServerConfig() (map[string]interface{}, error)
- func (b *AzureBotanist) GenerateKubeControllerManagerConfig() (map[string]interface{}, error)
- func (b *AzureBotanist) GenerateKubeSchedulerConfig() (map[string]interface{}, error)
- func (b *AzureBotanist) GenerateNginxIngressConfig() (map[string]interface{}, error)
- func (b *AzureBotanist) GetCloudProviderName() string
Constants ¶
const ( // SubscriptionID is a constant for the key in a cloud provider secret that holds the Azure subscription id. SubscriptionID = "subscriptionID" // TenantID is a constant for the key in a cloud provider secret that holds the Azure tenant id. TenantID = "tenantID" // ClientID is a constant for the key in a cloud provider secret that holds the Azure client id. ClientID = "clientID" // ClientSecret is a constant for the key in a cloud provider secret that holds the Azure client secret. ClientSecret = "clientSecret" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzureBotanist ¶
AzureBotanist is a struct which has methods that perform Azure cloud-specific operations for a Shoot cluster.
func New ¶
func New(o *operation.Operation) (*AzureBotanist, error)
New takes an operation object <o> and creates a new AzureBotanist object.
func (*AzureBotanist) ApplyCreateHook ¶
func (b *AzureBotanist) ApplyCreateHook() error
ApplyCreateHook does currently nothing for Azure.
func (*AzureBotanist) ApplyDeleteHook ¶
func (b *AzureBotanist) ApplyDeleteHook() error
ApplyDeleteHook does currently nothing for Azure.
func (*AzureBotanist) CheckIfClusterGetsScaled ¶
func (b *AzureBotanist) CheckIfClusterGetsScaled() (bool, int, error)
CheckIfClusterGetsScaled does currently nothing for Azure, as ScaleSets aren't supported.
func (*AzureBotanist) DeployAutoNodeRepair ¶
func (b *AzureBotanist) 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 Azure yet. To be implemented later
func (*AzureBotanist) DeployBackupInfrastructure ¶
func (b *AzureBotanist) DeployBackupInfrastructure() error
DeployBackupInfrastructure kicks off a Terraform job which creates the infrastructure resources for backup.
func (*AzureBotanist) DeployInfrastructure ¶
func (b *AzureBotanist) DeployInfrastructure() error
DeployInfrastructure kicks off a Terraform job which deploys the infrastructure.
func (*AzureBotanist) DeployKube2IAMResources ¶
func (b *AzureBotanist) DeployKube2IAMResources() error
DeployKube2IAMResources - Not needed on Azure
func (*AzureBotanist) DestroyBackupInfrastructure ¶
func (b *AzureBotanist) DestroyBackupInfrastructure() error
DestroyBackupInfrastructure kicks off a Terraform job which destroys the infrastructure for backup.
func (*AzureBotanist) DestroyInfrastructure ¶
func (b *AzureBotanist) DestroyInfrastructure() error
DestroyInfrastructure kicks off a Terraform job which destroys the infrastructure.
func (*AzureBotanist) DestroyKube2IAMResources ¶
func (b *AzureBotanist) DestroyKube2IAMResources() error
DestroyKube2IAMResources - Not needed on Azure.
func (*AzureBotanist) GenerateAdmissionControlConfig ¶
func (b *AzureBotanist) GenerateAdmissionControlConfig() (map[string]interface{}, error)
GenerateAdmissionControlConfig generates values which are required to render the chart admissions-controls properly.
func (*AzureBotanist) GenerateCalicoConfig ¶
func (b *AzureBotanist) GenerateCalicoConfig() (map[string]interface{}, error)
GenerateCalicoConfig generates values which are required to render the chart calico properly.
func (*AzureBotanist) GenerateCloudConfigUserDataConfig ¶
func (b *AzureBotanist) GenerateCloudConfigUserDataConfig() *common.CloudConfigUserDataConfig
GenerateCloudConfigUserDataConfig generates values which are required to render the chart shoot-cloud-config properly.
func (*AzureBotanist) GenerateCloudProviderConfig ¶
func (b *AzureBotanist) GenerateCloudProviderConfig() (string, error)
GenerateCloudProviderConfig returns a cloud provider config for the Azure cloud provider as defined here: https://github.com/kubernetes/kubernetes/blob/release-1.7/pkg/cloudprovider/providers/azure/azure.go#L58.
func (*AzureBotanist) GenerateClusterAutoscalerConfig ¶
func (b *AzureBotanist) GenerateClusterAutoscalerConfig() (map[string]interface{}, error)
GenerateClusterAutoscalerConfig - Not needed on Azure.
func (*AzureBotanist) GenerateEtcdBackupSecretData ¶
func (b *AzureBotanist) GenerateEtcdBackupSecretData() (map[string][]byte, error)
GenerateEtcdBackupSecretData generates the data for the secret which is required by the etcd-operator to store the backups on the ABS container, i.e. the secret contains the Azure storage account and the respective access key.
func (*AzureBotanist) GenerateEtcdConfig ¶
func (b *AzureBotanist) GenerateEtcdConfig(secretName string) (map[string]interface{}, error)
GenerateEtcdConfig returns the etcd deployment configuration (including backup settings) for the etcd Helm chart.
func (*AzureBotanist) GenerateKube2IAMConfig ¶
func (b *AzureBotanist) GenerateKube2IAMConfig() (map[string]interface{}, error)
GenerateKube2IAMConfig - Not needed on Azure.
func (*AzureBotanist) GenerateKubeAPIServerConfig ¶
func (b *AzureBotanist) 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 (*AzureBotanist) GenerateKubeControllerManagerConfig ¶
func (b *AzureBotanist) 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 (*AzureBotanist) GenerateKubeSchedulerConfig ¶
func (b *AzureBotanist) 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 (*AzureBotanist) GenerateNginxIngressConfig ¶
func (b *AzureBotanist) GenerateNginxIngressConfig() (map[string]interface{}, error)
GenerateNginxIngressConfig generates values which are required to render the chart nginx-ingress properly.
func (*AzureBotanist) GetCloudProviderName ¶
func (b *AzureBotanist) GetCloudProviderName() string
GetCloudProviderName returns the Kubernetes cloud provider name for this cloud.