azurebotanist

package
v0.0.0-...-133fb1b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
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

type AzureBotanist struct {
	*operation.Operation
	CloudProviderName string
}

AzureBotanist is a struct which has methods that perform Azure cloud-specific operations for a Shoot cluster.

func New

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL