localbotanist

package
v0.0.0-...-be4dc66 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2019 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalBotanist

type LocalBotanist struct {
	*operation.Operation
	CloudProviderName string
}

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

func New

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

func (*LocalBotanist) CleanupMachineClasses

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

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

func (*LocalBotanist) DeployBackupInfrastructure

func (b *LocalBotanist) DeployBackupInfrastructure() error

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

func (*LocalBotanist) DeployCloudSpecificControlPlane

func (b *LocalBotanist) DeployCloudSpecificControlPlane() error

DeployCloudSpecificControlPlane does currently nothing for Local.

func (*LocalBotanist) DeployInfrastructure

func (b *LocalBotanist) DeployInfrastructure() error

DeployInfrastructure talks to the gardener-local-provider which creates the nodes.

func (*LocalBotanist) DeployKube2IAMResources

func (b *LocalBotanist) DeployKube2IAMResources() error

DeployKube2IAMResources - Not needed on Local.

func (*LocalBotanist) DestroyBackupInfrastructure

func (b *LocalBotanist) DestroyBackupInfrastructure() error

DestroyBackupInfrastructure kicks off a Terraform job which destroys the infrastructure for backup.

func (*LocalBotanist) DestroyInfrastructure

func (b *LocalBotanist) DestroyInfrastructure() error

DestroyInfrastructure talks to the gardener-local-provider which destroys the nodes.

func (*LocalBotanist) DestroyKube2IAMResources

func (b *LocalBotanist) DestroyKube2IAMResources() error

DestroyKube2IAMResources - Not needed on Local.

func (*LocalBotanist) GenerateCSIConfig

func (b *LocalBotanist) GenerateCSIConfig() (map[string]interface{}, error)

GenerateCSIConfig generates the configuration for CSI charts

func (*LocalBotanist) GenerateCloudConfigUserDataConfig

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

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

func (*LocalBotanist) GenerateCloudControllerManagerConfig

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

GenerateCloudControllerManagerConfig generates the cloud provider specific values which are required to render the Deployment manifest of the cloud-controller-manager properly.

func (*LocalBotanist) GenerateCloudProviderConfig

func (b *LocalBotanist) GenerateCloudProviderConfig() (string, error)

GenerateCloudProviderConfig returns a cloud provider config for the Local cloud provider. Not needed on Local.

func (*LocalBotanist) GenerateEtcdBackupConfig

func (b *LocalBotanist) GenerateEtcdBackupConfig() (map[string][]byte, map[string]interface{}, error)

GenerateEtcdBackupConfig returns the etcd backup configuration for the etcd Helm chart.

func (*LocalBotanist) GenerateKube2IAMConfig

func (b *LocalBotanist) GenerateKube2IAMConfig() (map[string]interface{}, error)

GenerateKube2IAMConfig - Not needed on Local.

func (*LocalBotanist) GenerateKubeAPIServerConfig

func (b *LocalBotanist) 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 (*LocalBotanist) GenerateKubeAPIServerExposeConfig

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

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

func (*LocalBotanist) GenerateKubeAPIServerServiceConfig

func (b *LocalBotanist) 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 (*LocalBotanist) GenerateKubeControllerManagerConfig

func (b *LocalBotanist) 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 (*LocalBotanist) GenerateKubeSchedulerConfig

func (b *LocalBotanist) 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 (*LocalBotanist) GenerateMachineClassSecretData

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

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

func (*LocalBotanist) GenerateMachineConfig

func (b *LocalBotanist) 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 (*LocalBotanist) GenerateNginxIngressConfig

func (b *LocalBotanist) GenerateNginxIngressConfig() (map[string]interface{}, error)

GenerateNginxIngressConfig generates values which are required to render the chart nginx-ingress properly.

func (*LocalBotanist) GenerateStorageClassesConfig

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

GenerateStorageClassesConfig generates values which are required to render the chart shoot-storageclasses properly.

func (*LocalBotanist) GetCloudProviderName

func (b *LocalBotanist) GetCloudProviderName() string

GetCloudProviderName returns the Kubernetes cloud provider name for this cloud.

func (*LocalBotanist) GetMachineClassInfo

func (b *LocalBotanist) 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 (*LocalBotanist) ListMachineClasses

func (b *LocalBotanist) 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 (*LocalBotanist) RefreshCloudProviderConfig

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

RefreshCloudProviderConfig refreshes the cloud provider credentials in the existing cloud provider config. Not needed on Local, hence, the original is returned back.

Jump to

Keyboard shortcuts

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