kubernetes

package
v2.14.8+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2020 License: Apache-2.0 Imports: 6 Imported by: 236

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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