-
Notifications
You must be signed in to change notification settings - Fork 218
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
Conversation
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]>
8cbdcd3
to
68c4006
Compare
Signed-off-by: Reinhard Naegele <[email protected]>
Signed-off-by: Reinhard Naegele <[email protected]>
Signed-off-by: Reinhard Naegele <[email protected]>
There was a problem hiding this 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?
chart-testing/pkg/chart/chart.go
Line 645 in 6d0225c
t.kubectl.DeleteNamespace(namespace) |
@jlegrone Whenever we create a namespace, we should also delete it again. That's what's the case here. So, this is correct IMO. |
There was a problem hiding this 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!
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]