mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
fix: add 'immutable fields in the policy validation msg for FluxCD' (#11549)
Signed-off-by: ShutingZhao <shuting@nirmata.com>
This commit is contained in:
parent
a31017b997
commit
6b99fb0653
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