Documentation ¶
Index ¶
- func AddFinalizer(object metav1.Object, finalizer string)
- func Contains(s []string, str string) bool
- func DeleteConfigMap(name string, namespace string, client client.Client, reqLogger logr.Logger) error
- func DeleteFinalizer(object metav1.Object, finalizer string)
- func DeleteSecret(name string, namespace string, client client.Client, reqLogger logr.Logger) error
- func DeleteSyncSet(name string, namespace string, client client.Client, reqLogger logr.Logger) error
- func GetClusterID(cd *hivev1.ClusterDeployment) string
- func HasFinalizer(object metav1.Object, finalizer string) bool
- func LoadConfigMapData(c client.Client, configMap types.NamespacedName, dataKey string) (string, error)
- func LoadSecretData(c client.Client, secretName, namespace, dataKey string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFinalizer ¶
AddFinalizer adds a finalizer to the given object
func DeleteConfigMap ¶
func DeleteConfigMap(name string, namespace string, client client.Client, reqLogger logr.Logger) error
DeleteConfigMap deletes a ConfigMap
func DeleteFinalizer ¶
DeleteFinalizer removes a finalizer from the given object
func DeleteSecret ¶
DeleteSecret deletes a Secret
func DeleteSyncSet ¶
func DeleteSyncSet(name string, namespace string, client client.Client, reqLogger logr.Logger) error
DeleteSyncSet deletes a SyncSet
func GetClusterID ¶
func GetClusterID(cd *hivev1.ClusterDeployment) string
func HasFinalizer ¶
HasFinalizer returns true if the given object has the given finalizer
func LoadConfigMapData ¶
func LoadConfigMapData(c client.Client, configMap types.NamespacedName, dataKey string) (string, error)
LoadConfigMapData loads a given configmap key and returns its data as a string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.