Skip to content

Fails to apply namespace to releases in Helm 3 #3762

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

Closed
BlenderDude opened this issue Mar 2, 2020 · 3 comments · Fixed by #3787
Closed

Fails to apply namespace to releases in Helm 3 #3762

BlenderDude opened this issue Mar 2, 2020 · 3 comments · Fixed by #3787
Labels
kind/bug Something isn't working priority/p1 High impact feature/bug.

Comments

@BlenderDude
Copy link
Contributor

Expected behavior

When deploying to helm and using the namespace tag on the release, the --namespace argument should be passed to the upgrade (install), delete and get calls.

Actual behavior

The namespace is properly applied to the upgrade (install) command, but not during Cleanup or getArgs. I believe this problem was introduced with #3738 because helm3's releases themselves are namespace'd.

Information

  • Skaffold version: v1.4.0-73-ga9c7b3a47-dirty (pulled from master)
  • Operating system: MacOS
  • Contents of skaffold.yaml:
apiVersion: skaffold/v2alpha3
kind: Config
metadata:
  name: example
deploy:
  helm:
    releases:
      - name: example
        chartPath: helm
        namespace: example

Steps to reproduce the behavior

Example Repo (requires a namespace "example")
https://github.com/BlenderDude/skaffold-helm3-namespaces

  1. Create a helm deploy release that is scoped to a namespace
  2. Run skaffold dev once
  3. Quit to trigger a cleanup, it will fail because it cannot find the release in the namespace
  4. Re-run skaffold dev and it will fail upon installing because there is already a release, this exposes the fact that the helm getter is not accessing a namespace scoped release

I have already made some changes to the Go code and will be posting them as a PR, but I may need some help as I am not too familiar with Go.

@nkubala
Copy link
Contributor

nkubala commented Mar 4, 2020

@BlenderDude thanks for filing this issue so quickly :) I'd be more than happy to help you out with your PR. tag me in it once you submit it and I'll give you some pointers wherever you need them!

@nkubala nkubala added deploy/helm3 kind/bug Something isn't working priority/p1 High impact feature/bug. labels Mar 4, 2020
@foosinn
Copy link

foosinn commented Mar 5, 2020

@nkubala how will skaffold handle helm2 and 3 in the future? They differ in some places. Sill support both? Or simply drop helm2?

@nkubala
Copy link
Contributor

nkubala commented Mar 5, 2020

right now, we'll be supporting both natively. when helm2 is EOL'd, we'll considering dropping support for it, but not until then.

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

Successfully merging a pull request may close this issue.

3 participants