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(externalNetworkID *string, cm *corev1.ConfigMap, cloudName string, ...) error
- func ReconcileCloudConfigSecret(externalNetworkID *string, secret *corev1.Secret, cloudName string, ...) 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" 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 ¶
GetCloudConfigFromCredentialsSecret returns the CA cert from the credentials secret.
func ReconcileCCMServiceAccount ¶
func ReconcileCCMServiceAccount(sa *corev1.ServiceAccount, ownerRef config.OwnerRef) error
func ReconcileCloudConfigConfigMap ¶
func ReconcileCloudConfigConfigMap(externalNetworkID *string, 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(externalNetworkID *string, 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
Click to show internal directories.
Click to hide internal directories.