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

helm: delete doesn't respect namespace #3843

Closed
no1melman opened this issue Mar 19, 2020 · 8 comments
Closed

helm: delete doesn't respect namespace #3843

no1melman opened this issue Mar 19, 2020 · 8 comments
Labels
area/deploy deploy/helm in progress kind/bug Something isn't working priority/p1 High impact feature/bug.

Comments

@no1melman
Copy link

Expected behavior

Run

skaffold delete -n mynamespace

Everything should be cleaned up

Actual behavior

When running with custom namespace parameter, the delete command ignores it.
This doesn't help if you used run -n to put into a different namespace

Output from trace logs show command being run:

DEBU[0000] Running command: [helm --kube-context docker-for-desktop delete myrelease --namespace othernamespace] 

Information

  • Skaffold version: 1.5.0
  • Operating system: MacOS Mojave
  • Contents of skaffold.yaml:
deploy:
  helm:
    releases:
    - name: myrelease
      chartPath: k8s/client
      values:
        image.repository: myrelease
      namespace: othernamespace

Steps to reproduce the behavior

Run

skaffold run -n mynamespace
skaffold delete -n mynamespace
@dgageot
Copy link
Contributor

dgageot commented Mar 20, 2020

@no1melman are you using helm3 or a previous version?

@balopat balopat added kind/bug Something isn't working priority/awaiting-more-evidence Lowest Priority. May be useful, but there is not yet enough supporting evidence. area/deploy labels Mar 20, 2020
@no1melman
Copy link
Author

Helm 3

@dgageot dgageot removed their assignment Mar 26, 2020
@no1melman
Copy link
Author

@balopat do you require any more evidence?

@erpel
Copy link

erpel commented Apr 2, 2020

Can confirm:

skaffold -v debug delete --namespace amqtest
...
DEBU[0000] Running command: [helm --kube-context zephyr-infra delete activemq]

$ helm version version.BuildInfo{Version:"v3.1.2", GitCommit:"d878d4d45863e42fd5cff6743294a11d28a9abce", GitTreeState:"clean", GoVersion:"go1.13.8"} $ skaffold version v1.6.0

@nkubala nkubala added priority/p1 High impact feature/bug. and removed priority/awaiting-more-evidence Lowest Priority. May be useful, but there is not yet enough supporting evidence. labels Apr 7, 2020
@abh
Copy link

abh commented Apr 14, 2020

This might be fixed in #3929

@tejal29
Copy link
Contributor

tejal29 commented Apr 27, 2020

We are prioritizing reviewing the PR and verifying this is Fixed in #3929

@tstromberg tstromberg changed the title Skaffold Delete doesn't respect namespace helm: delete doesn't respect namespace May 1, 2020
@tstromberg
Copy link
Contributor

I looked through #3929 and don't see how it would fix this issue?

@tstromberg
Copy link
Contributor

tstromberg commented May 21, 2020

I tested this at head, but and it seems to be fixed now:

cd examples/helm-deployment-dependencies
skaffold run -n triage-party
skaffold delete -n triage-party

Example log:

DEBU[0000] Running command: [helm --kube-context minikube delete skaffold-helm --namespace triage-party] 
release "skaffold-helm" uninstalled

Please add a comment with the output of skaffold delete -n X -v=debug if you are still seeing this with the most recent Skaffold release.

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

No branches or pull requests

8 participants