Documentation ¶
Index ¶
Constants ¶
View Source
const (
FacadeGroup = "facade.compositions.google.com"
)
Variables ¶
This section is empty.
Functions ¶
func ValidateCRD ¶
func ValidateCRD(ctx context.Context, crd *apiextensions.CustomResourceDefinition) error
ValidateCRD calls the CRD package's validation on an internal representation of the CRD.
Types ¶
type CRDInfo ¶
type CRDInfo struct { Group string // Should the group be hardcoded to something like facade.compositions.google.com ? Kind string Plural string ShortNames []string Categories []string Version string PrinterColumns []apiextensions.CustomResourceColumnDefinition Labels map[string]string // contains filtered or unexported fields }
func NewFacadeCRDInfo ¶
func NewFacadeCRDInfo(kind string, plural string, shortNames []string, version string, printerCols []apiextensions.CustomResourceColumnDefinition, labels map[string]string) *CRDInfo
func (*CRDInfo) CRD ¶
func (c *CRDInfo) CRD() (*apiextensions.CustomResourceDefinition, error)
CRD takes a schema and converts it to a CRD.
func (*CRDInfo) SetCRDSchema ¶
func (c *CRDInfo) SetCRDSchema(schema *apiextensions.JSONSchemaProps)
func (*CRDInfo) SetSpec ¶
func (c *CRDInfo) SetSpec(specProperties *apiextensionsv1.JSONSchemaProps) error
Click to show internal directories.
Click to hide internal directories.