mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-05 07:26:55 +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) {
|
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
|
return "", nil
|
||||||
|
|
Loading…
Add table
Reference in a new issue