openstack

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: May 26, 2020 License: Apache-2.0, MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// Name is the name of the OpenStack provider.
	Name = "provider-openstack"
	// StorageProviderName is the name of the Openstack storage provider.
	StorageProviderName = "Swift"

	// MachineControllerManagerImageName is the name of the MachineControllerManager image.
	MachineControllerManagerImageName = "machine-controller-manager"
	// CloudControllerImageName is the name of the external OpenStackCloudProvider image.
	CloudControllerImageName = "cloud-controller-manager"

	// AuthURL is a constant for the key in a cloud provider secret that holds the OpenStack auth url.
	AuthURL = "authURL"
	// DomainName is a constant for the key in a cloud provider secret that holds the OpenStack domain name.
	DomainName = "domainName"
	// TenantName is a constant for the key in a cloud provider 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"
	// Password is a constant for the key in a cloud provider secret and backup secret that holds the OpenStack password.
	Password = "password"
	// Region is a constant for the key in a backup secret that holds the Openstack region.
	Region = "region"
	// BucketName is a constant for the key in a backup secret that holds the bucket name.
	// The bucket name is written to the backup secret by Gardener as a temporary solution.
	// TODO In the future, the bucket name should come from a BackupBucket resource (see https://github.com/gardener/gardener/blob/master/docs/proposals/02-backupinfra.md)
	BucketName = "bucketName"

	// CloudProviderConfigCloudControllerManagerName is the name of the configmap containing the cloud provider config.
	CloudProviderConfigCloudControllerManagerName = "cloud-provider-config-cloud-controller-manager"
	// CloudProviderConfigKubeControllerManagerName is the name of the original configmap containing the cloud provider config (for compatibility reasons).
	CloudProviderConfigKubeControllerManagerName = "cloud-provider-config-kube-controller-manager"
	// CloudProviderConfigMapKey is the key storing the cloud provider config as value in the cloud provider configmap.
	CloudProviderConfigMapKey = "cloudprovider.conf"
	// MachineControllerManagerName is a constant for the name of the machine-controller-manager.
	MachineControllerManagerName = "machine-controller-manager"
	// MachineControllerManagerVpaName is the name of the VerticalPodAutoscaler of the machine-controller-manager deployment.
	MachineControllerManagerVpaName = "machine-controller-manager-vpa"
	// MachineControllerManagerMonitoringConfigName is the name of the ConfigMap containing monitoring stack configurations for machine-controller-manager.
	MachineControllerManagerMonitoringConfigName = "machine-controller-manager-monitoring-config"
	// BackupSecretName defines the name of the secret containing the credentials which are required to
	// authenticate against the respective cloud provider (required to store the backups of Shoot clusters).
	BackupSecretName = "etcd-backup"
	// CloudControllerManagerName is a constant for the name of the CloudController deployed by the worker controller.
	CloudControllerManagerName = "cloud-controller-manager"
)
View Source
const Type = "openstack"

Type is the type of resources managed by the OpenStack actuator.

Variables

View Source
var (
	// ChartsPath is the path to the charts
	ChartsPath = filepath.Join("charts")
	// InternalChartsPath is the path to the internal charts
	InternalChartsPath = filepath.Join(ChartsPath, "internal")
)

Functions

This section is empty.

Types

type Credentials added in v1.7.1

type Credentials struct {
	DomainName string
	TenantName string
	Username   string
	Password   string
	AuthURL    string
}

Credentials contains the necessary OpenStack credential information.

func ExtractCredentials added in v1.7.1

func ExtractCredentials(secret *corev1.Secret) (*Credentials, error)

ExtractCredentials generates a credentials object for a given provider secret.

func GetCredentials added in v1.7.1

func GetCredentials(ctx context.Context, c client.Client, secretRef corev1.SecretReference) (*Credentials, error)

GetCredentials computes for a given context and infrastructure the corresponding credentials object.

func GetCredentialsBySecretBinding added in v1.7.1

func GetCredentialsBySecretBinding(ctx context.Context, c client.Client, secretBindingKey client.ObjectKey) (*Credentials, error)

GetCredentials computes for a given context and infrastructure the corresponding credentials object.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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