fix(clustertool) fix systemupgrade with kyverno 1.13.0 #28614
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
it seems like something has changed in kyverno 1.13.0 (3.3.0) compared to 1.12.x (3.2.7) which now requires the "get verb" for admissionController to be set.
event log of the apply-talos pod:
SchedulerError: running Bind plugin "DefaultBinder": admission webhook "mutate.kyverno.svc-fail" denied the request: mutation policy mutate-pod-binding error: failed to apply policy mutate-pod-binding rules [project-foo: variable substitution failed: failed to resolve schematic at path /mutate/patchStrategicMerge/metadata/annotations/extensions.talos.dev\/schematic: failed to fetch data for APICall: failed to GET resource with raw url : /api/v1/nodes/k8s-control-1: unknown]
⚒️ Fixes #
⚙️ Type of change
🧪 How Has This Been Tested?
on a fresh RC20 bootstrapped VM after updating kyverno chart to 3.3.0
📃 Notes:
this is not reproducable with kyverno chart 3.2.7
✔️ Checklist:
feat(chart-name):
,fix(chart-name):
orchore(chart-name):
➕ App addition
If this PR is an app addition please make sure you have done the following.
icon.png
Please don't blindly check all the boxes. Read them and only check those that apply.
Those checkboxes are there for the reviewer to see what is this all about and
the status of this PR with a quick glance.