openstackbotanist

package
v0.0.0-...-44ba42e Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2019 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DomainName is a constant for the key in a cloud provider secret and backup secret that holds the OpenStack domain name.
	DomainName = "domainName"
	// TenantName is a constant for the key in a cloud provider secret and backup secret that holds the OpenStack tenant name.
	TenantName = "tenantName"
	// UserName is a constant for the key in a cloud provider secret and backup secret that holds the OpenStack username.
	UserName = "username"
	// UserDomainName is a constant for the key in a cloud provider secret and backup secret that holds the OpenStack user domain name.
	UserDomainName = "userDomainName"
	// Password is a constant for the key in a cloud provider secret and backup secret that holds the OpenStack password.
	Password = "password"
	// AuthURL is a constant for the key in a backup secret that holds the OpenStack authentication URL.
	AuthURL = "authURL"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type OpenStackBotanist

type OpenStackBotanist struct {
	*operation.Operation
	CloudProviderName string
}

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

func New

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

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

func (*OpenStackBotanist) DeployBackupInfrastructure

func (b *OpenStackBotanist) DeployBackupInfrastructure() error

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

func (*OpenStackBotanist) DeployCloudSpecificControlPlane

func (b *OpenStackBotanist) DeployCloudSpecificControlPlane() error

DeployCloudSpecificControlPlane does currently nothing for OpenStack.

func (*OpenStackBotanist) DeployKube2IAMResources

func (b *OpenStackBotanist) DeployKube2IAMResources() error

DeployKube2IAMResources - Not needed on OpenStack

func (*OpenStackBotanist) DestroyBackupInfrastructure

func (b *OpenStackBotanist) DestroyBackupInfrastructure() error

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

func (*OpenStackBotanist) DestroyKube2IAMResources

func (b *OpenStackBotanist) DestroyKube2IAMResources() error

DestroyKube2IAMResources - Not needed on OpenStack.

func (*OpenStackBotanist) GenerateCSIConfig

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

GenerateCSIConfig generates the configuration for CSI charts

func (*OpenStackBotanist) GenerateCloudConfigUserDataConfig

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

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

func (*OpenStackBotanist) GenerateCloudControllerManagerConfig

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

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

GenerateCloudProviderConfig generates the OpenStack cloud provider config. See this for more details: https://github.com/kubernetes/kubernetes/blob/master/pkg/cloudprovider/providers/openstack/openstack.go

func (*OpenStackBotanist) GenerateETCDStorageClassConfig

func (b *OpenStackBotanist) GenerateETCDStorageClassConfig() map[string]interface{}

GenerateETCDStorageClassConfig generates values which are required to create etcd volume storageclass properly.

func (*OpenStackBotanist) GenerateEtcdBackupConfig

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

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

func (*OpenStackBotanist) GenerateKube2IAMConfig

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

GenerateKube2IAMConfig - Not needed on OpenStack.

func (*OpenStackBotanist) GenerateKubeAPIServerConfig

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

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

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

func (*OpenStackBotanist) GenerateKubeAPIServerServiceConfig

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

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

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

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

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

func (*OpenStackBotanist) GenerateStorageClassesConfig

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

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

func (*OpenStackBotanist) GenerateVPNShootConfig

func (b *OpenStackBotanist) GenerateVPNShootConfig() (map[string]interface{}, error)

GenerateVPNShootConfig generate cloud-specific vpn override - nothing unique for openstack

func (*OpenStackBotanist) GetCloudProviderName

func (b *OpenStackBotanist) GetCloudProviderName() string

GetCloudProviderName returns the Kubernetes cloud provider name for this cloud.

func (*OpenStackBotanist) RefreshCloudProviderConfig

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