mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 03:11:40 +00:00
Deeply copy JSONSchemaProps.XValidations.
This commit is contained in:
parent
2a2e3db782
commit
5af2984a37
@ -290,5 +290,11 @@ func (in *JSONSchemaProps) DeepCopy() *JSONSchemaProps {
|
||||
**out = **in
|
||||
}
|
||||
|
||||
if in.XValidations != nil {
|
||||
in, out := &in.XValidations, &out.XValidations
|
||||
*out = make([]ValidationRule, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
|
||||
return out
|
||||
}
|
||||
|
@ -250,5 +250,11 @@ func (in *JSONSchemaProps) DeepCopy() *JSONSchemaProps {
|
||||
**out = **in
|
||||
}
|
||||
|
||||
if in.XValidations != nil {
|
||||
in, out := &in.XValidations, &out.XValidations
|
||||
*out = make([]ValidationRule, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
|
||||
return out
|
||||
}
|
||||
|
@ -266,5 +266,11 @@ func (in *JSONSchemaProps) DeepCopy() *JSONSchemaProps {
|
||||
**out = **in
|
||||
}
|
||||
|
||||
if in.XValidations != nil {
|
||||
in, out := &in.XValidations, &out.XValidations
|
||||
*out = make([]ValidationRule, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
|
||||
return out
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user