mirror of
https://github.com/kyverno/kyverno.git
synced 2025-04-15 00:36:28 +00:00
added commentsto types.go
This commit is contained in:
parent
fcfe89ac8b
commit
f3dc56a7f8
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ type Rule struct {
|
|||
// Name - A required field represents rule name
|
||||
Name string `json:"name"`
|
||||
// MatchResources - An optional field contains resources for which the rule has to be applied.
|
||||
// If Added then "Kind" field is required.
|
||||
// If it's defined, "kind" inside MatchResources block is required.
|
||||
MatchResources MatchResources `json:"match"`
|
||||
// ExcludeResources - An optional field contains resources for which rule can be excluded
|
||||
ExcludeResources ExcludeResources `json:"exclude,omitempty"`
|
||||
|
|
Loading…
Add table
Reference in a new issue