crd

package
v1.20.1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: Apache-2.0 Imports: 16 Imported by: 6

Documentation

Index

Constants

View Source
const (
	EnvKubeClientQps   = "KUBE_CLIENT_QPS"
	EnvKubeClientBurst = "KUBE_CLIENT_BURST"
)

Variables

This section is empty.

Functions

func CacheKeyUIDFromMeta added in v1.20.0

func CacheKeyUIDFromMeta(metadata *metav1.ObjectMeta) types.UID

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 WaitForFunctionCRDs added in v1.20.0

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

WaitForFunctionCRDs does a timeout to check if CRDs have been installed

Types

type CacheKeyUR added in v1.20.0

type CacheKeyUR struct {
	UID             types.UID
	ResourceVersion string
}

func CacheKeyURFromMeta added in v1.20.0

func CacheKeyURFromMeta(metadata *metav1.ObjectMeta) CacheKeyUR

CacheKeyURFromMeta : 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 CacheKeyURFromObject added in v1.20.0

func CacheKeyURFromObject(obj metav1.Object) CacheKeyUR

func (CacheKeyUR) String added in v1.20.0

func (ck CacheKeyUR) String() string

type CacheKeyURG added in v1.20.0

type CacheKeyURG struct {
	UID             types.UID
	ResourceVersion string
	Generation      int64
}

func CacheKeyURGFromMeta added in v1.20.0

func CacheKeyURGFromMeta(metadata *metav1.ObjectMeta) CacheKeyURG

CacheKeyURGFromMeta : 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. Generation is also included to identify latest generation of the object.

func (CacheKeyURG) String added in v1.20.0

func (ck CacheKeyURG) String() string

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)

func (*ClientGenerator) GetRestConfig added in v1.20.0

func (cg *ClientGenerator) GetRestConfig() (*rest.Config, error)

type ClientGeneratorInterface added in v1.20.0

type ClientGeneratorInterface interface {
	GetRestConfig() (*rest.Config, error)
	GetFissionClient() (versioned.Interface, error)
	GetKubernetesClient() (kubernetes.Interface, error)
	GetApiExtensionsClient() (apiextensionsclient.Interface, error)
	GetMetricsClient() (metricsclient.Interface, error)
	GetDynamicClient() (dynamic.Interface, error)
}

Jump to

Keyboard shortcuts

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