Documentation ¶
Index ¶
- Constants
- func CCMDeployment(ns string) *appsv1.Deployment
- func CCMServiceAccount(ns string) *corev1.ServiceAccount
- func GetCACertFromCredentialsSecret(secret *corev1.Secret) []byte
- func ReconcileCCMServiceAccount(sa *corev1.ServiceAccount, ownerRef config.OwnerRef) error
- func ReconcileCloudConfigConfigMap(platformSpec *hyperv1.OpenStackPlatformSpec, cm *corev1.ConfigMap, ...) error
- func ReconcileCloudConfigSecret(platformSpec *hyperv1.OpenStackPlatformSpec, secret *corev1.Secret, ...) error
- func ReconcileDeployment(deployment *appsv1.Deployment, hcp *hyperv1.HostedControlPlane, ...) error
- func ReconcileTrustedCA(cm *corev1.ConfigMap, hcp *hyperv1.HostedControlPlane, caCertData []byte) error
- type OpenStackParams
Constants ¶
View Source
const ( CloudConfigDir = "/etc/openstack/config" CloudCredentialsDir = "/etc/openstack/secret" CloudConfigKey = "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 ¶
GetCloudConfigFromCredentialsSecret returns the CA cert from the credentials secret.
func ReconcileCCMServiceAccount ¶
func ReconcileCCMServiceAccount(sa *corev1.ServiceAccount, ownerRef config.OwnerRef) error
func ReconcileCloudConfigConfigMap ¶
func ReconcileCloudConfigConfigMap(platformSpec *hyperv1.OpenStackPlatformSpec, cm *corev1.ConfigMap, credentialsSecret *corev1.Secret, caCertData []byte, machineNetwork []hyperv1.MachineNetworkEntry) 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(platformSpec *hyperv1.OpenStackPlatformSpec, secret *corev1.Secret, credentialsSecret *corev1.Secret, caCertData []byte, machineNetwork []hyperv1.MachineNetworkEntry) 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
Click to show internal directories.
Click to hide internal directories.