mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-21 08:47:16 +00:00
Omit values from validation rule error expressions
This commit is contained in:
@@ -494,7 +494,9 @@ func (s *Validator) validateExpressions(ctx context.Context, fldPath *field.Path
|
||||
}
|
||||
|
||||
value := obj
|
||||
if sts.Type == "object" || sts.Type == "array" {
|
||||
if ok {
|
||||
value = field.OmitValueType{}
|
||||
} else if sts.Type == "object" || sts.Type == "array" {
|
||||
value = sts.Type
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user