openstack

package
v0.1.41 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CloudConfigDir      = "/etc/openstack/config"
	CloudCredentialsDir = "/etc/openstack/secret"
	CredentialsFile     = "cloud.conf"
	CaDir               = "/etc/pki/ca-trust/extracted/pem"
	CABundleKey         = "ca-bundle.pem"
	Provider            = "openstack"
	CloudsSecretKey     = "clouds.yaml"
	CASecretKey         = "cacert"
)

Variables

This section is empty.

Functions

func CCMDeployment

func CCMDeployment(ns string) *appsv1.Deployment

func CCMServiceAccount

func CCMServiceAccount(ns string) *corev1.ServiceAccount

func GetCACertFromCredentialsSecret

func GetCACertFromCredentialsSecret(secret *corev1.Secret) []byte

GetCloudConfigFromCredentialsSecret returns the CA cert from the credentials secret.

func ReconcileCCMServiceAccount

func ReconcileCCMServiceAccount(sa *corev1.ServiceAccount, ownerRef config.OwnerRef) error

func ReconcileCloudConfigConfigMap

func ReconcileCloudConfigConfigMap(cm *corev1.ConfigMap, cloudName string, credentialsSecret *corev1.Secret, caCertData []byte) error

ReconcileCloudConfigConfigMap reconciles the cloud config configmap. In some cases (e.g. CCM, kube cloud config, etc), the cloud config needs to be stored in a configmap.

func ReconcileCloudConfigSecret

func ReconcileCloudConfigSecret(secret *corev1.Secret, cloudName string, credentialsSecret *corev1.Secret, caCertData []byte) error

ReconcileCloudConfigSecret reconciles the cloud config secret. For some controllers (e.g. Manila CSI, CNCC, etc), the cloud config needs to be stored in a secret. In the hosted cluster config operator, we create the secrets needed by these controllers.

func ReconcileDeployment

func ReconcileDeployment(deployment *appsv1.Deployment, hcp *hyperv1.HostedControlPlane, p *OpenStackParams, serviceAccountName string, releaseImageProvider *imageprovider.ReleaseImageProvider, hasCACert bool) error

func ReconcileTrustedCA

func ReconcileTrustedCA(cm *corev1.ConfigMap, hcp *hyperv1.HostedControlPlane, caCertData []byte) error

ReconcileTrustedCA reconciles as expected by Nodes Kubelet.

Types

type OpenStackParams

type OpenStackParams struct {
	DeploymentConfig config.DeploymentConfig `json:"deploymentConfig"`
}

func NewOpenStackParams

func NewOpenStackParams(hcp *hyperv1.HostedControlPlane) *OpenStackParams

Jump to

Keyboard shortcuts

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