mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 04:06:03 +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
|
**out = **in
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if in.XValidations != nil {
|
||||||
|
in, out := &in.XValidations, &out.XValidations
|
||||||
|
*out = make([]ValidationRule, len(*in))
|
||||||
|
copy(*out, *in)
|
||||||
|
}
|
||||||
|
|
||||||
return out
|
return out
|
||||||
}
|
}
|
||||||
|
@ -250,5 +250,11 @@ func (in *JSONSchemaProps) DeepCopy() *JSONSchemaProps {
|
|||||||
**out = **in
|
**out = **in
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if in.XValidations != nil {
|
||||||
|
in, out := &in.XValidations, &out.XValidations
|
||||||
|
*out = make([]ValidationRule, len(*in))
|
||||||
|
copy(*out, *in)
|
||||||
|
}
|
||||||
|
|
||||||
return out
|
return out
|
||||||
}
|
}
|
||||||
|
@ -266,5 +266,11 @@ func (in *JSONSchemaProps) DeepCopy() *JSONSchemaProps {
|
|||||||
**out = **in
|
**out = **in
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if in.XValidations != nil {
|
||||||
|
in, out := &in.XValidations, &out.XValidations
|
||||||
|
*out = make([]ValidationRule, len(*in))
|
||||||
|
copy(*out, *in)
|
||||||
|
}
|
||||||
|
|
||||||
return out
|
return out
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user