From f3dc56a7f8b70b2f8d9ce5a40eb1526c2ac88767 Mon Sep 17 00:00:00 2001 From: Mohan BE <mohancool735@gmail.com> Date: Wed, 22 Jul 2020 09:34:56 +0530 Subject: [PATCH] added commentsto types.go --- pkg/api/kyverno/v1/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/api/kyverno/v1/types.go b/pkg/api/kyverno/v1/types.go index 6677c98b75..c580a81368 100644 --- a/pkg/api/kyverno/v1/types.go +++ b/pkg/api/kyverno/v1/types.go @@ -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"`