crd

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: May 1, 2019 License: Apache-2.0 Imports: 11 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

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, version, kind, listKind, singular, plural string, shortNames ...string) *CRDMeta

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

func (*CRDMeta) AddValidationInfo

func (m *CRDMeta) AddValidationInfo(typeSource string, fn common.GetOpenAPIDefinitions)

AddValidationInfo adds information that is needed to ensure validation is properly added to a CRD when CRDHandler.EnsureCRD is called.

Jump to

Keyboard shortcuts

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