Documentation ¶
Index ¶
- Constants
- type AzureBotanist
- func (b *AzureBotanist) ApplyCreateHook() 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) GenerateCloudConfigUserDataConfig() *common.CloudConfigUserDataConfig
- func (b *AzureBotanist) GenerateCloudProviderConfig() (string, error)
- func (b *AzureBotanist) GenerateEtcdBackupConfig() (map[string][]byte, 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) GenerateMachineConfig() ([]map[string]interface{}, []operation.MachineDeployment, error)
- func (b *AzureBotanist) GenerateNginxIngressConfig() (map[string]interface{}, error)
- func (b *AzureBotanist) GetCloudProviderName() string
- func (b *AzureBotanist) GetMachineClassInfo() (classKind, classPlural, classChartName 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, purpose string) (*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) 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) 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 See this for more details: https://github.com/kubernetes/kubernetes/blob/master/pkg/cloudprovider/providers/azure/azure.go
func (*AzureBotanist) GenerateEtcdBackupConfig ¶
func (b *AzureBotanist) GenerateEtcdBackupConfig() (map[string][]byte, map[string]interface{}, error)
GenerateEtcdBackupConfig returns the etcd backup configuration 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) GenerateMachineConfig ¶
func (b *AzureBotanist) GenerateMachineConfig() ([]map[string]interface{}, []operation.MachineDeployment, error)
GenerateMachineConfig generates the configuration values for the cloud-specific machine class Helm chart. It also generates a list of corresponding MachineDeployments. It returns the computed list of MachineClasses and MachineDeployments.
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.
func (*AzureBotanist) GetMachineClassInfo ¶
func (b *AzureBotanist) GetMachineClassInfo() (classKind, classPlural, classChartName string)
GetMachineClassInfo returns the name of the class kind, the plural of it and the name of the Helm chart which contains the machine class template.