gcpbotanist

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: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ServiceAccountJSON is a constant for the key in a cloud provider secret that holds the Google service account.
	ServiceAccountJSON = "serviceaccount.json"
	// ProjectID is a constant for the key in a Google service account storing the project id.
	ProjectID = "project_id"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GCPBotanist

type GCPBotanist struct {
	*operation.Operation
	CloudProviderName      string
	VPCName                string
	Project                string
	MinifiedServiceAccount string
}

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

func New

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

func (*GCPBotanist) ApplyCreateHook

func (b *GCPBotanist) ApplyCreateHook() error

ApplyCreateHook does currently nothing for GCP.

func (*GCPBotanist) ApplyDeleteHook

func (b *GCPBotanist) ApplyDeleteHook() error

ApplyDeleteHook does currently nothing for GCP.

func (*GCPBotanist) CheckIfClusterGetsScaled

func (b *GCPBotanist) CheckIfClusterGetsScaled() (bool, int, error)

CheckIfClusterGetsScaled does currently nothing for GCP.

func (*GCPBotanist) DeployAutoNodeRepair

func (b *GCPBotanist) 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 GCP yet. To be implemented later

func (*GCPBotanist) DeployBackupInfrastructure

func (b *GCPBotanist) DeployBackupInfrastructure() error

DeployBackupInfrastructure kicks off a Terraform job which deploys the infrastructure resources for backup. TODO: implement backup functionality for GCP

func (*GCPBotanist) DeployInfrastructure

func (b *GCPBotanist) DeployInfrastructure() error

DeployInfrastructure kicks off a Terraform job which deploys the infrastructure.

func (*GCPBotanist) DeployKube2IAMResources

func (b *GCPBotanist) DeployKube2IAMResources() error

DeployKube2IAMResources - Not needed on GCP

func (*GCPBotanist) DestroyBackupInfrastructure

func (b *GCPBotanist) DestroyBackupInfrastructure() error

DestroyBackupInfrastructure kicks off a Terraform job which destroys the infrastructure for backup. TODO: implement backup functionality for GCP

func (*GCPBotanist) DestroyInfrastructure

func (b *GCPBotanist) DestroyInfrastructure() error

DestroyInfrastructure kicks off a Terraform job which destroys the infrastructure.

func (*GCPBotanist) DestroyKube2IAMResources

func (b *GCPBotanist) DestroyKube2IAMResources() error

DestroyKube2IAMResources - Not needed on GCP.

func (*GCPBotanist) GenerateAdmissionControlConfig

func (b *GCPBotanist) GenerateAdmissionControlConfig() (map[string]interface{}, error)

GenerateAdmissionControlConfig generates values which are required to render the chart admissions-controls properly.

func (*GCPBotanist) GenerateCalicoConfig

func (b *GCPBotanist) GenerateCalicoConfig() (map[string]interface{}, error)

GenerateCalicoConfig - Not needed on GCP

func (*GCPBotanist) GenerateCloudConfigUserDataConfig

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

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

func (*GCPBotanist) GenerateCloudProviderConfig

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

GenerateCloudProviderConfig generates the GCE cloud provider config.

func (*GCPBotanist) GenerateClusterAutoscalerConfig

func (b *GCPBotanist) GenerateClusterAutoscalerConfig() (map[string]interface{}, error)

GenerateClusterAutoscalerConfig - Not needed on GCP.

func (*GCPBotanist) GenerateEtcdBackupSecretData

func (b *GCPBotanist) GenerateEtcdBackupSecretData() (map[string][]byte, error)

GenerateEtcdBackupSecretData generates the secret data for etcd-operator having credentials and config for backup infrastructure. TODO: implement backup functionality for GCP

func (*GCPBotanist) GenerateEtcdConfig

func (b *GCPBotanist) GenerateEtcdConfig(string) (map[string]interface{}, error)

GenerateEtcdConfig returns the map of Cloud specific backup configuration required by etcd-operator. TODO: implement backup functionality for GCP

func (*GCPBotanist) GenerateKube2IAMConfig

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

GenerateKube2IAMConfig - Not needed on GCP.

func (*GCPBotanist) GenerateKubeAPIServerConfig

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

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

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

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

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

func (*GCPBotanist) GetCloudProviderName

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