mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-28 10:28:36 +00:00
fix: update codegen (#3329)
Signed-off-by: Charles-Edouard Brétéché <charled.breteche@gmail.com>
This commit is contained in:
parent
8cc883becc
commit
93ad2d6011
7 changed files with 37 additions and 10 deletions
|
@ -737,6 +737,13 @@ func (in *Spec) DeepCopyInto(out *Spec) {
|
|||
*out = new(FailurePolicyType)
|
||||
**out = **in
|
||||
}
|
||||
if in.ValidationFailureActionOverrides != nil {
|
||||
in, out := &in.ValidationFailureActionOverrides, &out.ValidationFailureActionOverrides
|
||||
*out = make([]ValidationFailureActionOverride, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
if in.Background != nil {
|
||||
in, out := &in.Background, &out.Background
|
||||
*out = new(bool)
|
||||
|
@ -804,6 +811,26 @@ func (in *Validation) DeepCopy() *Validation {
|
|||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ValidationFailureActionOverride) DeepCopyInto(out *ValidationFailureActionOverride) {
|
||||
*out = *in
|
||||
if in.Namespaces != nil {
|
||||
in, out := &in.Namespaces, &out.Namespaces
|
||||
*out = make([]string, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidationFailureActionOverride.
|
||||
func (in *ValidationFailureActionOverride) DeepCopy() *ValidationFailureActionOverride {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ValidationFailureActionOverride)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ViolatedRule) DeepCopyInto(out *ViolatedRule) {
|
||||
*out = *in
|
||||
|
|
|
@ -21,7 +21,7 @@ package v1alpha1
|
|||
|
||||
import (
|
||||
policyreportv1alpha1 "github.com/kyverno/kyverno/api/policyreport/v1alpha1"
|
||||
v1 "k8s.io/api/core/v1"
|
||||
"k8s.io/api/core/v1"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||
)
|
||||
|
|
|
@ -21,7 +21,7 @@ package v1alpha2
|
|||
|
||||
import (
|
||||
policyreportv1alpha2 "github.com/kyverno/kyverno/api/policyreport/v1alpha2"
|
||||
v1 "k8s.io/api/core/v1"
|
||||
"k8s.io/api/core/v1"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||
)
|
||||
|
|
|
@ -20,7 +20,7 @@ limitations under the License.
|
|||
package v1alpha1
|
||||
|
||||
import (
|
||||
v1 "k8s.io/api/core/v1"
|
||||
"k8s.io/api/core/v1"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||
)
|
||||
|
|
|
@ -20,7 +20,7 @@ limitations under the License.
|
|||
package v1alpha2
|
||||
|
||||
import (
|
||||
v1 "k8s.io/api/core/v1"
|
||||
"k8s.io/api/core/v1"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||
)
|
||||
|
|
|
@ -2126,9 +2126,9 @@ spec:
|
|||
- enforce
|
||||
type: string
|
||||
validationFailureActionOverrides:
|
||||
description: ValidationFailureActionOverrides is a Cluster Policy attribute
|
||||
that specifies ValidationFailureAction namespace-wise. It overrides
|
||||
ValidationFailureAction for the specified namespaces.
|
||||
description: ValidationFailureActionOverrides is a Cluster Policy
|
||||
attribute that specifies ValidationFailureAction namespace-wise.
|
||||
It overrides ValidationFailureAction for the specified namespaces.
|
||||
items:
|
||||
properties:
|
||||
action:
|
||||
|
|
|
@ -2127,9 +2127,9 @@ spec:
|
|||
- enforce
|
||||
type: string
|
||||
validationFailureActionOverrides:
|
||||
description: ValidationFailureActionOverrides is a Cluster Policy attribute
|
||||
that specifies ValidationFailureAction namespace-wise. It overrides
|
||||
ValidationFailureAction for the specified namespaces.
|
||||
description: ValidationFailureActionOverrides is a Cluster Policy
|
||||
attribute that specifies ValidationFailureAction namespace-wise.
|
||||
It overrides ValidationFailureAction for the specified namespaces.
|
||||
items:
|
||||
properties:
|
||||
action:
|
||||
|
|
Loading…
Add table
Reference in a new issue