crd

package
v1.14.8 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2022 License: Apache-2.0 Imports: 12 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CRDHandler

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

CRDHandler takes care of ensuring CRD's for a cluster.

func NewCRDHandler

func NewCRDHandler(client crdclient.Interface) *CRDHandler

NewCRDHandler returns a new CRDHandler.

func (*CRDHandler) EnsureCRD

func (h *CRDHandler) EnsureCRD(meta *CRDMeta, namespacedScoped bool) (*apiextensionsv1.CustomResourceDefinition, error)

EnsureCRD ensures a CRD in a cluster given the CRD's metadata.

type CRDMeta

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

CRDMeta contains version, validation and API information for a CRD.

func NewCRDMeta

func NewCRDMeta(groupName, kind, listKind, singular, plural string, versions []*Version, shortNames ...string) *CRDMeta

NewCRDMeta creates a CRDMeta type which can be passed to a CRDHandler in order to create/ensure a CRD.

type Version added in v1.11.0

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

Version specifies the API version and meta information that is needed to generate OpenAPI schema based CRD validation.

func NewVersion added in v1.11.0

func NewVersion(name, typeSource string, fn common.GetOpenAPIDefinitions) *Version

NewVersion returns a CRD API version with validation metadata.

Jump to

Keyboard shortcuts

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