crds

package
v0.0.0-...-c2efb00 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCRD

CreateCRD takes a template and a schema and converts it to a CRD.

func CreateSchema

CreateSchema combines the schema of the match target and the ConstraintTemplate parameters to form the schema of the actual constraint resource.

func ValidateCR

ValidateCR validates the provided custom resource against its CustomResourceDefinition.

func ValidateCRD

ValidateCRD calls the CRD package's validation on an internal representation of the CRD.

func ValidateTargets

func ValidateTargets(templ *templates.ConstraintTemplate) error

ValidateTargets ensures that the targets field has the appropriate values.

Types

type MatchSchemaProvider

type MatchSchemaProvider interface {
	// MatchSchema returns the JSON Schema for the `match` field of a constraint
	MatchSchema() apiextensions.JSONSchemaProps
}

Jump to

Keyboard shortcuts

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