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

Don't create provided namespace #205

Merged
merged 5 commits into from
Feb 27, 2020
Merged

Conversation

unguiculus
Copy link
Member

Adding support for Helm 3 introduced creating namespaces
because Helm does not do this automatically anymore.
However, a regression was introduced that always creates
namespaces, even if a dedicated namespace is provided via
CLI flag.

Signed-off-by: Reinhard Naegele [email protected]

Adding support for Helm 3 introduced creating namespaces
because Helm does not do this automatically anymore.
However, a regression was introduced that always creates
namespaces, even if a dedicated namespace is provided via
CLI flag.

Signed-off-by: Reinhard Naegele <[email protected]>
@unguiculus unguiculus marked this pull request as ready for review February 14, 2020 15:27
Copy link
Member

@jlegrone jlegrone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we also need to avoid namespace deletion here?

t.kubectl.DeleteNamespace(namespace)

@unguiculus
Copy link
Member Author

@jlegrone Whenever we create a namespace, we should also delete it again. That's what's the case here. So, this is correct IMO.

Copy link
Member

@jlegrone jlegrone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@unguiculus my bad, I missed that the case I mentioned was in an else block. Thanks!

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

Successfully merging this pull request may close these issues.

3 participants