utils

package
v0.0.0-...-be237b4 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

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, reqLogger logr.Logger) error

DeleteRefSecret deletes Secret which referenced by SyncSet

func DeleteSyncSet

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

DeleteSyncSet deletes a SyncSet

func GetHashOfPullSecret

func GetHashOfPullSecret(data string) string

GetHashOfPullSecret returns md5 sum of a string

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 it's data as a string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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