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

Webhook configuration using wrong namespace #455

Closed
slushysnowman opened this issue Oct 22, 2021 · 3 comments · Fixed by #456
Closed

Webhook configuration using wrong namespace #455

slushysnowman opened this issue Oct 22, 2021 · 3 comments · Fixed by #456
Assignees
Labels
bug Something isn't working helm
Milestone

Comments

@slushysnowman
Copy link
Contributor

Bug description

A clear and concise description of what the bug is.

How to reproduce

Steps to reproduce the behavior:

  1. Using Helm chart 0.1.2, deploy to a namespace other than capsule-system
  2. Create a tenant, specifying allowed storage classes
  3. Create a namespace in the tenant
  4. Create a persistent volume claim in the tenant namespace

Error from server (InternalError): error when creating "test-deployment.yaml": Internal error occurred: failed calling webhook "pvc.capsule.clastix.io": Post "https://capsule-webhook-service.capsule-system.svc:443/persistentvolumeclaims?timeout=30s": service "capsule-webhook-service" not found

The namespace for the service is incorrect - it seems to be hardcoded, rather than referencing {{ .Release.Namespace }}

Expected behavior

Webhook configuration should reference the correct namespace. It seems to be fixed in the helm chart files here, but the latest tagged version of the helm chart doesn't include this fix yet.

Is there an ETA for when a new version of the helm chart with this fix will be released, or how we can get around this until then?

Additional context

  • Capsule version: 0.1.0
  • Helm Chart version: 0.1.2
  • Kubernetes version: v1.21.2-eks-0389ca
@slushysnowman slushysnowman added blocked-needs-validation Issue need triage and validation bug Something isn't working labels Oct 22, 2021
@prometherion prometherion self-assigned this Oct 23, 2021
@prometherion prometherion added helm and removed blocked-needs-validation Issue need triage and validation labels Oct 23, 2021
@prometherion
Copy link
Member

Thanks for reporting this: the bug was tracked with #448 and the related PR merged.

However, we missed releasing a new Helm version. Once #456 is merged I'll tag a new helm release and expected to get it published on our repo.

@prometherion
Copy link
Member

@slushysnowman we just released the v0.1.3 Chart version.

Please, give it a try and if anything still doesn't work, don't hesitate to open back this issue!

@prometherion prometherion reopened this Oct 24, 2021
@prometherion prometherion added this to the v0.1.1 milestone Oct 24, 2021
@slushysnowman
Copy link
Contributor Author

@prometherion - working great, thanks for picking this up so quickly!

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

Successfully merging a pull request may close this issue.

2 participants