crdutils

package
v0.0.0-...-1ccf6c1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// CustomResourceDefinitionSchemaVersionKey is key to label which holds the CRD schema version
	CustomResourceDefinitionSchemaVersionKey = ciliumio.GroupName + ".k8s.crd.schema.version"
)

Variables

This section is empty.

Functions

func RegisterCRDs

func RegisterCRDs(clientset apiextensionsclient.Interface, crds []CRD) error

func RegisterCRDsWithOptions

func RegisterCRDsWithOptions(clientset apiextensionsclient.Interface, crds []CRD, opts CRDOptions) error

Types

type CRD

type CRD struct {
	Definition apiextensionsv1.CustomResourceDefinition
	CRDName    string
	ResName    string
}

func NewCRD

func NewCRD(crdName, resName string, crd apiextensionsv1.CustomResourceDefinition) CRD

func NewCRDBytes

func NewCRDBytes(crdName, resName string, crdBytes []byte) CRD

type CRDOptions

type CRDOptions struct {
	ForceUpdate bool
}

CRDOptions are options for CRD registration

Jump to

Keyboard shortcuts

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