Documentation
¶
Index ¶
- func CopySecretToRemoteCluster(ctx context.Context, cl ctrlclient.Client, srcSecretName string, ...) error
- func CreateConfigMapForCRS(configMapName, configMapNamespace string, objs ...runtime.Object) (*corev1.ConfigMap, error)
- func CreateStorageClass(storageConfig v1alpha1.StorageClassConfig, ...) *storagev1.StorageClass
- func CreateStorageClassOnRemote(ctx context.Context, cl ctrlclient.Client, ...) error
- func EnsureCRSForClusterFromObjects(ctx context.Context, crsName string, c ctrlclient.Client, ...) error
- func EnsureNamespace(ctx context.Context, c ctrlclient.Client, ns *corev1.Namespace) error
- func EnsureNamespaceWithMetadata(ctx context.Context, c ctrlclient.Client, name string, ...) error
- func EnsureNamespaceWithName(ctx context.Context, c ctrlclient.Client, name string) error
- func RetrieveValuesTemplate(ctx context.Context, c ctrlclient.Client, configMapName, namespace string) (string, error)
- func RetrieveValuesTemplateConfigMap(ctx context.Context, c ctrlclient.Client, configMapName, namespace string) (*corev1.ConfigMap, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopySecretToRemoteCluster ¶
func CopySecretToRemoteCluster( ctx context.Context, cl ctrlclient.Client, srcSecretName string, dstSecretKey ctrlclient.ObjectKey, cluster *clusterv1.Cluster, ) error
CopySecretToRemoteCluster will get the Secret from srcSecretName and create it on the remote cluster, copying Data and StringData to dstSecretKey Secret.
func CreateConfigMapForCRS ¶
func CreateStorageClass ¶
func CreateStorageClass( storageConfig v1alpha1.StorageClassConfig, provisionerName v1alpha1.StorageProvisioner, isDefault bool, defaultParameters map[string]string, ) *storagev1.StorageClass
func CreateStorageClassOnRemote ¶ added in v0.8.0
func CreateStorageClassOnRemote( ctx context.Context, cl ctrlclient.Client, configs []v1alpha1.StorageClassConfig, cluster *clusterv1.Cluster, defaultStorageConfig v1alpha1.DefaultStorage, csiProvider string, provisioner v1alpha1.StorageProvisioner, defaultParameters map[string]string, ) error
func EnsureNamespace ¶
EnsureNamespace will create the namespace if it does not exist.
func EnsureNamespaceWithMetadata ¶ added in v0.9.0
func EnsureNamespaceWithMetadata(ctx context.Context, c ctrlclient.Client, name string, labels, annotations map[string]string, ) error
EnsureNamespaceWithMetadata will create the namespace with the specified name, labels, and/or annotations, if it does not exist.
func EnsureNamespaceWithName ¶ added in v0.8.0
EnsureNamespaceWithName will create the namespace with the specified name if it does not exist.
func RetrieveValuesTemplate ¶ added in v0.8.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.