customresourcedefinition

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromKubeCustomResourceDefinition

func FromKubeCustomResourceDefinition(customResourceDefinition *v1beta1.CustomResourceDefinition) *skkube.CustomResourceDefinition

func NewCrdCacheForConfig added in v0.11.1

func NewCrdCacheForConfig(ctx context.Context, cluster string, restConfig *rest.Config) clustercache.ClusterCache

func NewCrdResourceClientFactory added in v0.11.6

func NewCrdResourceClientFactory(cacheGetter clustercache.CacheGetter) *crdResourceClientFactory

func NewKubeCustomResourceDefinitionCache

func NewKubeCustomResourceDefinitionCache(ctx context.Context, apiExtsClient apiexts.Interface) (*kubeCustomResourceDefinitionCache, error)

This context should live as long as the cache is desired. i.e. if the cache is shared across clients, it should get a context that has a longer lifetime than the clients themselves

func ToKubeCustomResourceDefinition

func ToKubeCustomResourceDefinition(resource resources.Resource) (*v1beta1.CustomResourceDefinition, error)

Types

type KubeCustomResourceDefinitionCache

type KubeCustomResourceDefinitionCache interface {
	clustercache.ClusterCache
	CustomResourceDefinitionLister() apiextslisters.CustomResourceDefinitionLister
	Subscribe() <-chan struct{}
	Unsubscribe(<-chan struct{})
}

Jump to

Keyboard shortcuts

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