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

Removing pull secret by helm has no effect on running policy server #459

Open
kravciak opened this issue May 4, 2023 · 0 comments
Open
Labels

Comments

@kravciak
Copy link
Contributor

kravciak commented May 4, 2023

Current Behavior

I set up default policy server with pull secret. When I remove pull secret later it has no effect on active policy server deployment.

Steps To Reproduce

Default configuration has no pull secret

~ helm get values -n kubewarden kubewarden-defaults
  USER-SUPPLIED VALUES:
  null
~ k get deploy -n kubewarden policy-server-default -o yaml | grep secret-registry

Set up pull secret and see changes as expected

~ kubectl --namespace kubewarden create secret docker-registry secret-registry-docker \
    --docker-username=testuser \
    --docker-password=testpassword \
    --docker-server=192.168.64.2.nip.io:30707
~ helm upgrade --wait --reuse-values --set policyServer.imagePullSecret=secret-registry-docker --namespace kubewarden kubewarden-defaults kubewarden/kubewarden-defaults

~ helm get values -n kubewarden kubewarden-defaults
  USER-SUPPLIED VALUES:
  policyServer:
    imagePullSecret: secret-registry-docker

~ k get deploy -n kubewarden policy-server-default -o yaml | grep secret-registry
  secretName: secret-registry-docker

Remove pull secret has not effect on running policy-server

~ helm upgrade --wait --reuse-values --set policyServer.imagePullSecret=null --namespace kubewarden kubewarden-defaults kubewarden/kubewarden-defaults

~ helm get values -n kubewarden kubewarden-defaults
  USER-SUPPLIED VALUES:
  policyServer: {}
~ k get deploy -n kubewarden policy-server-default -o yaml | grep secret-registry
  secretName: secret-registry-docker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

1 participant