crd

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

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