Closed den-is closed 4 months ago
There is no easy way at the moment with strategic merge patches, but you can use a partial patch to change all policies to 'privileged' which will effectively disable it.
@smira wrong answer :)
Strategic Merge Patch indeed is not working, but JSON Patch (RFC6902) did actually work.
My bad. I pushed an empty patch file. After actually providing:
- op: replace
path: /cluster/apiServer/admissionControl
value: []
Everything worked
I'm trying to disable default PodSecurityAdmission policy, so kindly enabled by the Talos team.
I've tried to pass empty array value to plain yaml configuration.
Tried to apply actual patchesJson6902 patch (which works for my test/non-tf deploys)
Nothing seems to be working, except manually removing it using talosctl. Each time I reapply terrafrom policy returns.