Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSchemaValidator ¶
func NewSchemaValidator(customResourceValidation *apiextensions.CustomResourceValidation) (*validate.SchemaValidator, error)
NewSchemaValidator creates an openapi schema validator for the given CRD validation.
func ValidateCustomResource ¶
func ValidateCustomResource(customResource interface{}, validator *validate.SchemaValidator) error
ValidateCustomResource validates the Custom Resource against the schema in the CustomResourceDefinition. CustomResource is a JSON data structure.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.