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 ¶
type CRDOptions ¶
type CRDOptions struct {
ForceUpdate bool
}
CRDOptions are options for CRD registration
Click to show internal directories.
Click to hide internal directories.