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

Validating webhooks fail due wrong ca bundle after helm upgrade #546

Closed
bsctl opened this issue Apr 13, 2022 · 0 comments · Fixed by #547
Closed

Validating webhooks fail due wrong ca bundle after helm upgrade #546

bsctl opened this issue Apr 13, 2022 · 0 comments · Fixed by #547
Assignees
Labels
bug Something isn't working
Milestone

Comments

@bsctl
Copy link
Member

bsctl commented Apr 13, 2022

Bug description

Validating webhooks fail due wrong ca bundle after helm upgrade:

How to reproduce

Steps to reproduce the behavior:

  1. Install Capsule with Helm
  2. Create some tenants
  3. Update Capsule via helm upgrade
capsule clastix/capsule \
   -n capsule-system \
   --set manager.options.forceTenantPrefix=true \
   --set manager.options.capsuleUserGroups[0]=$NEW_CAPSULE_GROUP
  1. Login as tenant owner and create a namespace in the given tenant
$ kubectl create ns solar-wind
Error from server (InternalError): Internal error occurred: failed calling webhook "owner.namespace.capsule.clastix.io": Post "https://capsule-webhook-service.capsule-system.svc:443/namespace-owner-reference?timeout=30s": x509: certificate signed by unknown authority

Expected behavior

Tenant owner is able to operate after capsule helm upgrade

Logs

If applicable, please provide logs of capsule.

In a standard stand-alone installation of Capsule,
you'd get this by running kubectl -n capsule-system logs deploy/capsule-controller-manager.

Additional context

$ helm -n capsule-system list
NAME            NAMESPACE       REVISION        UPDATED                                 STATUS          CHART                   APP VERSION
capsule         capsule-system  9               2022-04-13 09:19:58.408853 +0200 CEST   deployed        capsule-0.1.8           0.1.1      
capsule-proxy   capsule-system  2               2022-04-13 09:38:53.049759 +0200 CEST   deployed        capsule-proxy-0.2.1     0.2.1      

@bsctl bsctl added bug Something isn't working blocked-needs-validation Issue need triage and validation labels Apr 13, 2022
@prometherion prometherion removed the blocked-needs-validation Issue need triage and validation label Apr 13, 2022
@prometherion prometherion added this to the v0.1.2 milestone Apr 13, 2022
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

Successfully merging a pull request may close this issue.

2 participants