crd

package
v1.18.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 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 CacheKeyUID added in v1.15.0

func CacheKeyUID(metadata *metav1.ObjectMeta) string

CacheKeyForUID create a key that uniquely identifies the of the object. Since resourceVersion changes on every update and UIDs are unique, we don't use resource version here

func EnsureFissionCRDs

func EnsureFissionCRDs(ctx context.Context, logger *zap.Logger, clientset apiextensionsclient.Interface) error

EnsureFissionCRDs checks if all Fission CRDs are present

func WaitForCRDs added in v1.16.0

func WaitForCRDs(ctx context.Context, logger *zap.Logger, fissionClient versioned.Interface) error

WaitForCRDs does a timeout to check if CRDs have been installed

Types

type ClientGenerator added in v1.18.0

type ClientGenerator struct {
	// contains filtered or unexported fields
}

func NewClientGenerator added in v1.18.0

func NewClientGenerator() *ClientGenerator

func NewClientGeneratorWithRestConfig added in v1.18.0

func NewClientGeneratorWithRestConfig(restConfig *rest.Config) *ClientGenerator

func (*ClientGenerator) GetApiExtensionsClient added in v1.18.0

func (cg *ClientGenerator) GetApiExtensionsClient() (apiextensionsclient.Interface, error)

func (*ClientGenerator) GetDynamicClient added in v1.18.0

func (cg *ClientGenerator) GetDynamicClient() (dynamic.Interface, error)

func (*ClientGenerator) GetFissionClient added in v1.18.0

func (cg *ClientGenerator) GetFissionClient() (versioned.Interface, error)

func (*ClientGenerator) GetKubernetesClient added in v1.18.0

func (cg *ClientGenerator) GetKubernetesClient() (kubernetes.Interface, error)

func (*ClientGenerator) GetMetricsClient added in v1.18.0

func (cg *ClientGenerator) GetMetricsClient() (metricsclient.Interface, error)

Jump to

Keyboard shortcuts

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