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

Unable to continue with install: PodSecurityPolicy: missing key "meta.helm.sh/release-namespace": must be set to "default" #1251

Closed
Dentrax opened this issue Apr 15, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@Dentrax
Copy link

Dentrax commented Apr 15, 2021

What steps did you take and what happened:

  1. $ helm repo add gatekeeper https://open-policy-agent.github.io/gatekeeper/charts --force-update
  2. $ helm install gatekeeper/gatekeeper --generate-name --set experimentalEnableMutation=true --dry-run
Error: rendered manifests contain a resource that already exists. Unable to continue with install: PodSecurityPolicy "gatekeeper-admin" in namespace "" exists and cannot be imported into the current release: invalid ownership metadata; label validation error: missing key "app.kubernetes.io/managed-by": must be set to "Helm"; annotation validation error: missing key "meta.helm.sh/release-name": must be set to "gatekeeper-1618484158"; annotation validation error: missing key "meta.helm.sh/release-namespace": must be set to "default"

What did you expect to happen:
It should work? 🤔

Anything else you would like to add:
I was following the Deploying via Helm installation steps.

Environment:

  • Gatekeeper version: v3.4.0
  • Kubernetes version: (use kubectl version): C: v1.19.7, S: v1.20.2
  • Helm version: version.BuildInfo{Version:"v3.5.3", GitCommit:"041ce5a2c17a58be0fcd5f5e16fb3e7e95fea622", GitTreeState:"dirty", GoVersion:"go1.16"}
@Dentrax Dentrax added the bug Something isn't working label Apr 15, 2021
@sozercan
Copy link
Member

Sounds like you already have a non-Helm deployment of Gatekeeper in your cluster. I would suggest removing any existing components then deploy Gatekeeper using Helm.

@maxsmythe
Copy link
Contributor

Closing this out, please re-open if the issue persists after following @sozercan's suggestion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants