Documentation ¶
Index ¶
- Constants
- func HasSchemaWith(spec *apiextensions.CustomResourceDefinitionSpec, ...) bool
- func SchemaHas(s *apiextensions.JSONSchemaProps, ...) bool
- func SchemaHasInvalidTypes(s *apiextensions.JSONSchemaProps) bool
- func ValidateCustomResourceColumnDefinition(col *apiextensions.CustomResourceColumnDefinition, fldPath *field.Path) field.ErrorList
- func ValidateCustomResourceConversion(conversion *apiextensions.CustomResourceConversion, fldPath *field.Path) field.ErrorList
- func ValidateCustomResourceDefinition(ctx context.Context, obj *apiextensions.CustomResourceDefinition) field.ErrorList
- func ValidateCustomResourceDefinitionNames(names *apiextensions.CustomResourceDefinitionNames, fldPath *field.Path) field.ErrorList
- func ValidateCustomResourceDefinitionOpenAPISchema(schema *apiextensions.JSONSchemaProps, fldPath *field.Path, ...) field.ErrorList
- func ValidateCustomResourceDefinitionStatus(status *apiextensions.CustomResourceDefinitionStatus, fldPath *field.Path) field.ErrorList
- func ValidateCustomResourceDefinitionStoredVersions(storedVersions []string, ...) field.ErrorList
- func ValidateCustomResourceDefinitionSubresources(subresources *apiextensions.CustomResourceSubresources, fldPath *field.Path) field.ErrorList
- func ValidateCustomResourceDefinitionUpdate(ctx context.Context, obj, oldObj *apiextensions.CustomResourceDefinition) field.ErrorList
- func ValidateUpdateCustomResourceDefinitionStatus(obj, oldObj *apiextensions.CustomResourceDefinition) field.ErrorList
Constants ¶
const ( // StaticEstimatedCostLimit represents the largest-allowed static CEL cost on a per-expression basis. StaticEstimatedCostLimit = 10000000 // StaticEstimatedCRDCostLimit represents the largest-allowed total cost for the x-kubernetes-validations rules of a CRD. StaticEstimatedCRDCostLimit = 100000000 )
Variables ¶
This section is empty.
Functions ¶
func HasSchemaWith ¶ added in v0.23.0
func HasSchemaWith(spec *apiextensions.CustomResourceDefinitionSpec, pred func(s *apiextensions.JSONSchemaProps) bool) bool
func SchemaHas ¶ added in v0.23.0
func SchemaHas(s *apiextensions.JSONSchemaProps, pred func(s *apiextensions.JSONSchemaProps) bool) bool
func SchemaHasInvalidTypes ¶ added in v0.16.4
func SchemaHasInvalidTypes(s *apiextensions.JSONSchemaProps) bool
SchemaHasInvalidTypes returns true if it contains invalid offending openapi-v3 specification.
func ValidateCustomResourceColumnDefinition ¶
func ValidateCustomResourceColumnDefinition(col *apiextensions.CustomResourceColumnDefinition, fldPath *field.Path) field.ErrorList
ValidateCustomResourceColumnDefinition statically validates a printer column.
func ValidateCustomResourceConversion ¶
func ValidateCustomResourceConversion(conversion *apiextensions.CustomResourceConversion, fldPath *field.Path) field.ErrorList
ValidateCustomResourceConversion statically validates
func ValidateCustomResourceDefinition ¶
func ValidateCustomResourceDefinition(ctx context.Context, obj *apiextensions.CustomResourceDefinition) field.ErrorList
ValidateCustomResourceDefinition statically validates context is passed for supporting context cancellation during cel validation when validating defaults
func ValidateCustomResourceDefinitionNames ¶
func ValidateCustomResourceDefinitionNames(names *apiextensions.CustomResourceDefinitionNames, fldPath *field.Path) field.ErrorList
ValidateCustomResourceDefinitionNames statically validates
func ValidateCustomResourceDefinitionOpenAPISchema ¶
func ValidateCustomResourceDefinitionOpenAPISchema(schema *apiextensions.JSONSchemaProps, fldPath *field.Path, ssv specStandardValidator, isRoot bool, opts *validationOptions, nodeCostInfo costInfo) field.ErrorList
ValidateCustomResourceDefinitionOpenAPISchema statically validates
func ValidateCustomResourceDefinitionStatus ¶
func ValidateCustomResourceDefinitionStatus(status *apiextensions.CustomResourceDefinitionStatus, fldPath *field.Path) field.ErrorList
ValidateCustomResourceDefinitionStatus statically validates
func ValidateCustomResourceDefinitionStoredVersions ¶
func ValidateCustomResourceDefinitionStoredVersions(storedVersions []string, versions []apiextensions.CustomResourceDefinitionVersion, fldPath *field.Path) field.ErrorList
ValidateCustomResourceDefinitionStoredVersions statically validates
func ValidateCustomResourceDefinitionSubresources ¶
func ValidateCustomResourceDefinitionSubresources(subresources *apiextensions.CustomResourceSubresources, fldPath *field.Path) field.ErrorList
ValidateCustomResourceDefinitionSubresources statically validates
func ValidateCustomResourceDefinitionUpdate ¶
func ValidateCustomResourceDefinitionUpdate(ctx context.Context, obj, oldObj *apiextensions.CustomResourceDefinition) field.ErrorList
ValidateCustomResourceDefinitionUpdate statically validates context is passed for supporting context cancellation during cel validation when validating defaults
func ValidateUpdateCustomResourceDefinitionStatus ¶
func ValidateUpdateCustomResourceDefinitionStatus(obj, oldObj *apiextensions.CustomResourceDefinition) field.ErrorList
ValidateUpdateCustomResourceDefinitionStatus statically validates
Types ¶
This section is empty.