mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-29 10:55:05 +00:00
fix comments
This commit is contained in:
parent
b1063a95e1
commit
5912eda1c0
2 changed files with 2 additions and 2 deletions
|
@ -30,7 +30,7 @@ func NewGenerateFactory(client *dclient.Client, rule kyverno.Generation) *Genera
|
|||
return &g
|
||||
}
|
||||
|
||||
//Validate validates the generate rule in validation
|
||||
//Validate validates the 'generate' rule
|
||||
func (g *Generate) Validate() (string, error) {
|
||||
rule := g.rule
|
||||
if rule.Data == nil && rule.Clone == (kyverno.CloneFrom{}) {
|
||||
|
|
|
@ -23,7 +23,7 @@ func NewMutateFactory(rule kyverno.Mutation) *Mutate {
|
|||
return &m
|
||||
}
|
||||
|
||||
//Validate validates the 'mutate' rul
|
||||
//Validate validates the 'mutate' rule
|
||||
func (m *Mutate) Validate() (string, error) {
|
||||
rule := m.rule
|
||||
// JSON Patches
|
||||
|
|
Loading…
Add table
Reference in a new issue