Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetCRDStatus ¶ added in v0.8.5
func SetCRDStatus(crd *extv1.CustomResourceDefinition, status extv1.JSONSchemaProps, statusFieldsOverride bool)
SetCRDStatus updates the status schema in a CRD. This allows synthesizing a CRD early (with empty status) and updating it later after the status schema has been inferred from CEL expressions.
func SynthesizeCRD ¶
func SynthesizeCRD(group, apiVersion, kind string, spec, status extv1.JSONSchemaProps, statusFieldsOverride bool, scope extv1.ResourceScope, rgSchema *v1alpha1.Schema) *extv1.CustomResourceDefinition
SynthesizeCRD generates a CustomResourceDefinition for a given API version and kind with the provided spec and status schemas. scope must be either extv1.NamespaceScoped or extv1.ClusterScoped; defaults to NamespaceScoped.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package crdcompat provides functionality for comparing Kubernetes CustomResourceDefinition schemas and identifying breaking and non-breaking changes.
|
Package crdcompat provides functionality for comparing Kubernetes CustomResourceDefinition schemas and identifying breaking and non-breaking changes. |
Click to show internal directories.
Click to hide internal directories.