Versions in this module Expand all Collapse all v0 v0.62.0 Apr 16, 2024 Changes in this version + func CalculateFlatSchemaDiff(o, n FlatSchema) (map[string]FieldDiff, error) + func EnumChangeValidation(diff FieldDiff) (bool, error) + func NoExistingFieldRemoved(old, new v1.CustomResourceDefinition) error + func NoScopeChange(old, new v1.CustomResourceDefinition) error + func NoStoredVersionRemoved(old, new v1.CustomResourceDefinition) error + type ChangeValidation func(diff FieldDiff) (bool, error) + type ChangeValidator struct + Validations []ChangeValidation + func (cv *ChangeValidator) Name() string + func (cv *ChangeValidator) Validate(old, new v1.CustomResourceDefinition) error + type FieldDiff struct + New *v1.JSONSchemaProps + Old *v1.JSONSchemaProps + type FlatSchema map[string]*v1.JSONSchemaProps + func FlattenSchema(schema *v1.JSONSchemaProps) FlatSchema + type Preflight struct + func NewPreflight(df cmdcore.DepsFactory, enabled bool) *Preflight + func (p *Preflight) Enabled() bool + func (p *Preflight) Run(ctx context.Context, changeGraph *ctldgraph.ChangeGraph) error + func (p *Preflight) SetConfig(_ preflight.CheckConfig) error + func (p *Preflight) SetEnabled(enabled bool) + type ValidateFunc func(old, new v1.CustomResourceDefinition) error + type Validation interface + Name func() string + Validate func(old, new v1.CustomResourceDefinition) error + func NewValidationFunc(name string, vfunc ValidateFunc) Validation + type ValidationFunc struct + func (vf *ValidationFunc) Name() string + func (vf *ValidationFunc) Validate(old, new v1.CustomResourceDefinition) error + type Validator struct + Validations []Validation + func (v *Validator) Validate(old, new v1.CustomResourceDefinition) error