1
0
Fork 0
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) (#11552)

Signed-off-by: ShutingZhao <shuting@nirmata.com>
Co-authored-by: shuting <shuting@nirmata.com>
This commit is contained in:
gcp-cherry-pick-bot[bot] 2024-11-07 09:48:34 +00:00 committed by GitHub
parent a7d5c23168
commit 9cfc1f2f18
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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