Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidatorsFromFile ¶
func ValidatorsFromFile(t *testing.T, crdFilePath string) (validatorsByVersionByJSONPath map[string]map[string]CELValidateFunc)
ValidatorsFromFile extracts the CEL validators by version and JSONPath from a CRD file and returns a validator func for testing against samples.
Types ¶
type CELValidateFunc ¶
CELValidateFunc tests a sample object against a CEL validator.
Click to show internal directories.
Click to hide internal directories.