Documentation ¶
Index ¶
Constants ¶
View Source
const ( // WcpClusterConfigMapNamespace is the namespace of the wcp-cluster-config ConfigMap. WcpClusterConfigMapNamespace = "kube-system" // WcpClusterConfigMapName is the name of the wcp-cluster-config ConfigMap. WcpClusterConfigMapName = "wcp-cluster-config" // WcpClusterConfigFileName is the name of the key specified in the wcp-cluster-config ConfigMap containing the cluster config. WcpClusterConfigFileName = "wcp-cluster-config.yaml" )
View Source
const ( // VcCredsSecretName is the credential secret that stores the VM operator service provider user credentials. VcCredsSecretName = "wcp-vmop-sa-vc-auth" //nolint:gosec )
Variables ¶
This section is empty.
Functions ¶
func AddToManager ¶
func AddToManager(ctx *context.ControllerManagerContext, mgr manager.Manager) error
AddToManager adds this package's controller to the provided manager.
func NewWcpClusterConfigMap ¶
func NewWcpClusterConfigMap(wcpClusterConfig WcpClusterConfig) (*corev1.ConfigMap, error)
Types ¶
type Reconciler ¶
type Reconciler struct { client.Client Logger logr.Logger Recorder record.Recorder // contains filtered or unexported fields }
func NewReconciler ¶
type WcpClusterConfig ¶
func ParseWcpClusterConfig ¶
func ParseWcpClusterConfig(wcpClusterCfgData map[string]string) (*WcpClusterConfig, error)
ParseWcpClusterConfig builds and returns the cluster config.
Click to show internal directories.
Click to hide internal directories.