Skip to content

clear defaultPodSecurityPolicyTemplateId when disable psp support is selected during rke1 provisioning#4980

Merged
mantis-toboggan-md merged 1 commit intorancher:masterfrom
mantis-toboggan-md:psa-rke1
Mar 6, 2023
Merged

clear defaultPodSecurityPolicyTemplateId when disable psp support is selected during rke1 provisioning#4980
mantis-toboggan-md merged 1 commit intorancher:masterfrom
mantis-toboggan-md:psa-rke1

Conversation

@mantis-toboggan-md
Copy link
Member

rancher/dashboard#8304

Changing the 'pod security policy support' radio to 'disabled' changes rancherKubernetesEngineConfig.services.kubeApi.podSecurityPolicy - to fully disable PSP support we also need to clear out the defaultPodSecurityPolicyTemplateId

I also noticed a problem with one of the warning banners around upgrading while working on this; previously I was checking for the presence of podSecurityPolicyTemplateProjectBindings in the cluster: the actual resource that causes issues on attempting to upgrade to >=1.25 is policy.podSecurityPolicy. Not sure if I've implemented this correctly: that resource doesn't appear to be available via norman so I've queried the relevant cluster's kubernetes api endpoint instead.

clear config.defaultPodSecurityPolicyTemplateId when disable psp support is selected
@mantis-toboggan-md mantis-toboggan-md added this to the 2.7.2 milestone Mar 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants