1
0
Fork 0
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:
Mohan BE 2020-07-22 09:34:56 +05:30
parent fcfe89ac8b
commit f3dc56a7f8

View file

@ -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"`