crd

package
v0.0.2-pre Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromGV

func FromGV(gv schema.GroupVersion, kind string, obj interface{}) crd.CRD

FromGV returns an abstract namespace-scope CRD handler via group version and kind.

func NonNamespacedFromGV

func NonNamespacedFromGV(gv schema.GroupVersion, kind string, obj interface{}) crd.CRD

NonNamespacedFromGV returns a cluster-scope CRD abstract handler via group version and kind.

Types

type Factory

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

func NewFactoryFromClient

func NewFactoryFromClient(ctx context.Context, config *rest.Config) (*Factory, error)

NewFactoryFromClient returns a CRD initialization factory.

func (*Factory) BatchCreateCRDsIfNotExisted

func (f *Factory) BatchCreateCRDsIfNotExisted(crds ...crd.CRD) *Factory

CreateCRDsIfNotExisted concurrently creates the target CRDs which are not existed.

func (*Factory) BatchWait

func (f *Factory) BatchWait() error

func (*Factory) CreateCRDs

func (f *Factory) CreateCRDs(ctx context.Context, updateIfExisted bool, crds ...crd.CRD) (map[schema.GroupVersionKind]*apiext.CustomResourceDefinition, error)

Jump to

Keyboard shortcuts

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