1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-15 04:07:46 +00:00

fix typo in policy struct ()

* Updates L-30  Signed-off-by: viveksahu26  vivekkumarsahu650@gmail.com

Signed-off-by: viveksahu26 <vivekkumarsahu650@gmail.com>

* compile the code using

Signed-off-by: viveksahu26 <vivekkumarsahu650@gmail.com>
This commit is contained in:
vivek kumar sahu 2021-06-22 22:33:15 +05:30 committed by GitHub
parent 4765d1ccc9
commit faa88699af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions
definitions/crds
pkg/api/kyverno/v1

View file

@ -45,7 +45,7 @@ spec:
metadata: metadata:
type: object type: object
spec: spec:
description: Spec defines policy behaviors and contains one or rules. description: Spec defines policy behaviors and contains one or more rules.
properties: properties:
background: background:
description: Background controls if rules are applied to existing description: Background controls if rules are applied to existing

View file

@ -27,7 +27,7 @@ type Policy struct {
metav1.TypeMeta `json:",inline,omitempty" yaml:",inline,omitempty"` metav1.TypeMeta `json:",inline,omitempty" yaml:",inline,omitempty"`
metav1.ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"` metav1.ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`
// Spec defines policy behaviors and contains one or rules. // Spec defines policy behaviors and contains one or more rules.
Spec Spec `json:"spec" yaml:"spec"` Spec Spec `json:"spec" yaml:"spec"`
// Status contains policy runtime information. // Status contains policy runtime information.