crd

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: Apache-2.0 Imports: 16 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheKey

func CacheKey(metadata *metav1.ObjectMeta) string

CacheKey : Given metadata, create a key that uniquely identifies the contents of the object. Since resourceVersion changes on every update and UIDs are unique, uid+resourceVersion identifies the content. (ResourceVersion may also update on status updates, so this will result in some unnecessary cache misses. That should be ok.)

func EnsureFissionCRDs

func EnsureFissionCRDs(logger *zap.Logger, clientset *apiextensionsclient.Clientset) error

EnsureFissionCRDs checks if all Fission CRDs are present

func GetDynamicClient added in v1.11.0

func GetDynamicClient() (dynamic.Interface, error)

GetDynamicClient creates and returns new dynamic client or returns an error

func GetKubernetesClient

GetKubernetesClient gets a kubernetes client using the kubeconfig file at the environment var $KUBECONFIG, or an in-cluster config if that's undefined.

Types

type FissionClient

type FissionClient struct {
	genClientset.Interface
}

FissionClient exports the client interface to be used

func (*FissionClient) WaitForCRDs

func (fc *FissionClient) WaitForCRDs() error

WaitForCRDs does a timeout to check if CRDs have been installed

Jump to

Keyboard shortcuts

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