Version: v2.14.13+incompatible Latest Latest

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

Go to latest
Published: Apr 2, 2021 License: Apache-2.0 Imports: 6 Imported by: 214




This section is empty.


This section is empty.


func AddFinalizer

func AddFinalizer(obj metav1.Object, finalizers ...string)

AddFinalizer will add the given finalizer to the object. It uses a StringSet to avoid duplicates

func GenerateToken

func GenerateToken() string

GenerateToken generates a new, random token that can be used as an admin and kubelet token.

func HasAnyFinalizer

func HasAnyFinalizer(o metav1.Object, names ...string) bool

func HasFinalizer

func HasFinalizer(o metav1.Object, names ...string) bool

HasFinalizer tells if a object has all the given finalizers

func HasOnlyFinalizer

func HasOnlyFinalizer(o metav1.Object, name string) bool

HasOnlyFinalizer tells if an object has only the given finalizer

func RemoveFinalizer

func RemoveFinalizer(obj metav1.Object, toRemove string)

RemoveFinalizer removes the given finalizer from the object

func ValidateKubernetesToken

func ValidateKubernetesToken(token string) error

ValidateKubernetesToken checks if a given token is syntactically correct.

func ValidateSecretKeySelector

func ValidateSecretKeySelector(selector *providerconfig.GlobalSecretKeySelector, key string) error


This section is empty.

Jump to

Keyboard shortcuts

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