utils

package
v0.0.0-...-603c6f4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFinalizer

func AddFinalizer(object metav1.Object, finalizer string)

AddFinalizer adds a finalizer to the given object

func CheckClusterDeployment

func CheckClusterDeployment(request reconcile.Request, client client.Client, reqLogger logr.Logger) (bool, *hivev1.ClusterDeployment, error)

CheckClusterDeployment returns true if the ClusterDeployment is watched by this operator

func DeleteFinalizer

func DeleteFinalizer(object metav1.Object, finalizer string)

DeleteFinalizer removes a finalizer from the given object

func DeleteRefSecret

func DeleteRefSecret(name string, namespace string, client client.Client) error

DeleteRefSecret deletes Secret which referenced by SyncSet

func DeleteSyncSet

func DeleteSyncSet(name string, namespace string, client client.Client) error

DeleteSyncSet deletes a SyncSet

func HasFinalizer

func HasFinalizer(object metav1.Object, finalizer string) bool

HasFinalizer returns true if the given object has the given finalizer

func LoadSecretData

func LoadSecretData(c client.Client, secretName, namespace, dataKey string) (string, error)

LoadSecretData loads a given secret key and returns its data as a string.

func SecretName

func SecretName(clusterName, optionalPostFix string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL