Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(helm): support unset security contexts in UI deployment #416

Merged
merged 1 commit into from
Mar 9, 2024

Conversation

erikgb
Copy link

@erikgb erikgb commented Mar 9, 2024

Our target clusters are OpenShift, and to set security contexts on OpenShift you usually need an SCC. Since no elevated permissions are required for the workloads in this project, we prefer to NOT set securityContexts. This PR makes it possible.

$ helm template charts/policy-reporter/ --set "ui.enabled=true" | grep securityContext
      securityContext:
          securityContext:
      securityContext:
          securityContext:

$ helm template charts/policy-reporter/ --set "podSecurityContext=null,securityContext=null,ui.enabled=true,ui.podSecurityContext=null,ui.securityContext=null" | grep securityContext

@fjogeleit fjogeleit merged commit f9bf6ae into kyverno:3.x Mar 9, 2024
1 check passed
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.

None yet

2 participants