1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00

Clean up commented out lines of code (#3263)

Signed-off-by: Abhishek Choudhary <shreemaan.abhishek@gmail.com>
This commit is contained in:
Abhishek Choudhary 2022-02-19 15:10:11 +05:30 committed by GitHub
parent ae7e636687
commit 25ffa1abd1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -345,33 +345,6 @@ func (in *Rule) DeepCopyInto(out *Rule) {
// never should get here
return
}
// *out = *in
// if in.Context != nil {
// in, out := &in.Context, &out.Context
// *out = make([]ContextEntry, len(*in))
// for i := range *in {
// (*in)[i].DeepCopyInto(&(*out)[i])
// }
// }
// in.MatchResources.DeepCopyInto(&out.MatchResources)
// in.ExcludeResources.DeepCopyInto(&out.ExcludeResources)
// if in.AnyAllConditions != nil {
// out.AnyAllConditions = in.AnyAllConditions
// }
// in.Mutation.DeepCopyInto(&out.Mutation)
// in.Validation.DeepCopyInto(&out.Validation)
// in.Generation.DeepCopyInto(&out.Generation)
// if in.VerifyImages != nil {
// in, out := &in.VerifyImages, &out.VerifyImages
// *out = make([]*ImageVerification, len(*in))
// for i := range *in {
// if (*in)[i] != nil {
// in, out := &(*in)[i], &(*out)[i]
// *out = new(ImageVerification)
// **out = **in
// }
// }
// }
}
// ToKey generates the key string used for adding label to polivy violation