crds

package
v0.0.0-...-10a8790 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FacadeGroup = "facade.compositions.google.com"
)

Variables

This section is empty.

Functions

func ValidateCRD

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

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

Jump to

Keyboard shortcuts

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