Skip to content

Commit

Permalink
Merge pull request #107968 from benluddy/automated-cherry-pick-of-#10…
Browse files Browse the repository at this point in the history
…7956-upstream-release-1.23

Automated cherry pick of #107956: Deeply copy JSONSchemaProps.XValidations.
  • Loading branch information
k8s-ci-robot committed Feb 7, 2022
2 parents 7c7f40d + 14c399e commit b3d485d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
Expand Up @@ -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
}
Expand Up @@ -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
}
Expand Up @@ -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
}

0 comments on commit b3d485d

Please sign in to comment.