1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-31 03:45:17 +00:00

fix comments

This commit is contained in:
shivkumar dudhani 2020-03-11 18:14:42 -07:00
parent b1063a95e1
commit 5912eda1c0
2 changed files with 2 additions and 2 deletions

View file

@ -30,7 +30,7 @@ func NewGenerateFactory(client *dclient.Client, rule kyverno.Generation) *Genera
return &g return &g
} }
//Validate validates the generate rule in validation //Validate validates the 'generate' rule
func (g *Generate) Validate() (string, error) { func (g *Generate) Validate() (string, error) {
rule := g.rule rule := g.rule
if rule.Data == nil && rule.Clone == (kyverno.CloneFrom{}) { if rule.Data == nil && rule.Clone == (kyverno.CloneFrom{}) {

View file

@ -23,7 +23,7 @@ func NewMutateFactory(rule kyverno.Mutation) *Mutate {
return &m return &m
} }
//Validate validates the 'mutate' rul //Validate validates the 'mutate' rule
func (m *Mutate) Validate() (string, error) { func (m *Mutate) Validate() (string, error) {
rule := m.rule rule := m.rule
// JSON Patches // JSON Patches