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)

Signed-off-by: ShutingZhao <shuting@nirmata.com>
This commit is contained in:
shuting 2024-11-07 16:54:33 +08:00 committed by GitHub
parent a31017b997
commit 6b99fb0653
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