mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
Validate substitutions against openAPI
This commit is contained in:
@@ -133,6 +133,10 @@ func (s *Set) substitute(field *yaml.RNode, ext *cliExtension, _ *spec.Schema) (
|
||||
return false, errors.Wrap(err)
|
||||
}
|
||||
|
||||
if err := validateAgainstSchema(subSetter, setter); err != nil {
|
||||
return false, err
|
||||
}
|
||||
|
||||
if val, found := subSetter.Setter.EnumValues[subSetter.Setter.Value]; found {
|
||||
// the setter has an enum-map. we should replace the marker with the
|
||||
// enum value looked up from the map rather than the enum key
|
||||
|
||||
Reference in New Issue
Block a user