mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
Signed-off-by: ShutingZhao <shuting@nirmata.com> Co-authored-by: shuting <shuting@nirmata.com>
This commit is contained in:
parent
a7d5c23168
commit
9cfc1f2f18
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ func immutableGenerateFields(new, old kyvernov1.PolicyInterface) (string, error)
|
|||
}
|
||||
|
||||
if !newRuleHashes.IsSuperset(oldRuleHashes) {
|
||||
return "", errors.New("changes of the rule spec in a generate rule is disallowed")
|
||||
return "", errors.New("changes of immutable fields of a rule spec in a generate rule is disallowed")
|
||||
}
|
||||
|
||||
return "", nil
|
||||
|
|
Loading…
Reference in a new issue