azurebotanist

package
v0.0.0-...-32fc51b Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2018 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 10 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

func New(o *operation.Operation, purpose string) (*AzureBotanist, error)

New takes an operation object <o> and creates a new AzureBotanist object.

func (*AzureBotanist) CleanupMachineClasses

func (b *AzureBotanist) CleanupMachineClasses(existingMachineDeployments operation.MachineDeployments) error

CleanupMachineClasses deletes all machine classes which are not part of the provided list <existingMachineDeployments>.

func (*AzureBotanist) DeployBackupInfrastructure

func (b *AzureBotanist) DeployBackupInfrastructure() error

DeployBackupInfrastructure kicks off a Terraform job which creates the infrastructure resources for backup.

func (*AzureBotanist) DeployCloudSpecificControlPlane

func (b *AzureBotanist) DeployCloudSpecificControlPlane() error

DeployCloudSpecificControlPlane does currently nothing for Azure.

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) GenerateCloudConfigUserDataConfig

func (b *AzureBotanist) GenerateCloudConfigUserDataConfig() *common.CloudConfigUserDataConfig

GenerateCloudConfigUserDataConfig generates values which are required to render the chart shoot-cloud-config properly.

func (*AzureBotanist) GenerateCloudControllerManagerConfig

func (b *AzureBotanist) GenerateCloudControllerManagerConfig() (map[string]interface{}, error)

GenerateCloudControllerManagerConfig generates the cloud provider specific values which are required to render the Deployment manifest of the cloud-controller-manager 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) GenerateKubeAPIServerExposeConfig

func (b *AzureBotanist) GenerateKubeAPIServerExposeConfig() (map[string]interface{}, error)

GenerateKubeAPIServerExposeConfig defines the cloud provider specific values which configure how the kube-apiserver is exposed to the public.

func (*AzureBotanist) GenerateKubeAPIServerServiceConfig

func (b *AzureBotanist) GenerateKubeAPIServerServiceConfig() (map[string]interface{}, error)

GenerateKubeAPIServerServiceConfig generates the cloud provider specific values which are required to render the Service manifest of the kube-apiserver-service 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) GenerateMachineClassSecretData

func (b *AzureBotanist) GenerateMachineClassSecretData() map[string][]byte

GenerateMachineClassSecretData generates the secret data for the machine class secret (except the userData field which is computed elsewhere).

func (*AzureBotanist) GenerateMachineConfig

func (b *AzureBotanist) GenerateMachineConfig() ([]map[string]interface{}, operation.MachineDeployments, 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) GenerateStorageClassesConfig

func (b *AzureBotanist) GenerateStorageClassesConfig() (map[string]interface{}, error)

GenerateStorageClassesConfig generates values which are required to render the chart shoot-storageclasses 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.

func (*AzureBotanist) ListMachineClasses

func (b *AzureBotanist) ListMachineClasses() (sets.String, sets.String, error)

ListMachineClasses returns two sets of strings whereas the first contains the names of all machine classes, and the second the names of all referenced secrets.

func (*AzureBotanist) RefreshCloudProviderConfig

func (b *AzureBotanist) RefreshCloudProviderConfig(currentConfig map[string]string) map[string]string

RefreshCloudProviderConfig refreshes the cloud provider credentials in the existing cloud provider config.

Jump to

Keyboard shortcuts

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