mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-31 03:45:17 +00:00
remove omitemptu on pocliy.spec and policy.spec.rules
This commit is contained in:
parent
d36934fe11
commit
b493600754
1 changed files with 2 additions and 2 deletions
|
@ -56,13 +56,13 @@ type PolicyViolationList struct {
|
|||
type Policy struct {
|
||||
metav1.TypeMeta `json:",inline"`
|
||||
metav1.ObjectMeta `json:"metadata,omitempty"`
|
||||
Spec Spec `json:"spec,omitempty"`
|
||||
Spec Spec `json:"spec"`
|
||||
Status PolicyStatus `json:"status"`
|
||||
}
|
||||
|
||||
// Spec describes policy behavior by its rules
|
||||
type Spec struct {
|
||||
Rules []Rule `json:"rules,omitempty"`
|
||||
Rules []Rule `json:"rules"`
|
||||
ValidationFailureAction string `json:"validationFailureAction"`
|
||||
Background bool `json:"background,omitempty"`
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue