Skip to content
This repository has been archived by the owner on Nov 22, 2018. It is now read-only.

Uninstall doesn't check namespace #392

Open
mattreyuk opened this issue Feb 3, 2016 · 3 comments
Open

Uninstall doesn't check namespace #392

mattreyuk opened this issue Feb 3, 2016 · 3 comments
Labels

Comments

@mattreyuk
Copy link
Contributor

I was working on a group of replication controllers and services that I created with helm in the default namespace. Later I created another version exactly the same in a different namespace (namespace created outside of helm). I ran helm uninstall on the version of the chart with a namespace specified in the manifest files and helm deleted the controllers and services in the default namespace.

helm version 0.3.1+d4c0fa8

@mboersma
Copy link
Contributor

mboersma commented Feb 3, 2016

+1. I assume this is a bug. I've been working around it with helm uninstall -n <namespace>.

@mboersma mboersma added the bug label Feb 3, 2016
@technosophos
Copy link
Member

Has anyone tested this behavior with a raw manifest file and kubectl? For deletes, we drop to kubectl. I'm going to look at the code and see what the easiest path to a fix is. Thanks, @mattreyuk, for the report.

technosophos added a commit to technosophos/helm that referenced this issue Feb 18, 2016
This is a stop gap fix for issue helm#392.
technosophos added a commit to technosophos/helm that referenced this issue Feb 18, 2016
This is a stop gap fix for issue helm#392.
@technosophos
Copy link
Member

We believe we've verified that kubectl ignores namespaces in the delete case. Our stop-gap solution is to require -n NAMESPACE when running an uninstall command.

Longer term, we need to decide how to handle this case. There are a couple of interesting edge cases where charts have multiple namespaces. We need to figure out how to solve those.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants