Skip to content
This repository was archived by the owner on Jun 29, 2022. It is now read-only.

Add check for multiple release in Namespace#1093

Merged
knrt10 merged 4 commits intomasterfrom
knrt10/component-delete-namespace-multiple-releases
Oct 21, 2020
Merged

Add check for multiple release in Namespace#1093
knrt10 merged 4 commits intomasterfrom
knrt10/component-delete-namespace-multiple-releases

Conversation

@knrt10
Copy link
Contributor

@knrt10 knrt10 commented Oct 19, 2020

User should know that before deleting a component that other helm
release exists in a namespace.

closes: #1077
Signed-off-by: knrt10 kautilya@kinvolk.io

@knrt10 knrt10 requested review from invidian and ipochi October 19, 2020 07:16
@knrt10 knrt10 force-pushed the knrt10/component-delete-namespace-multiple-releases branch from eb450f7 to 3e65cfa Compare October 19, 2020 07:19
@knrt10 knrt10 force-pushed the knrt10/component-delete-namespace-multiple-releases branch from 846ddb5 to 645f86e Compare October 19, 2020 07:38
@knrt10 knrt10 requested a review from invidian October 19, 2020 07:38
@knrt10 knrt10 force-pushed the knrt10/component-delete-namespace-multiple-releases branch from 645f86e to b94acaf Compare October 19, 2020 07:42
Copy link
Member

@invidian invidian left a comment

Choose a reason for hiding this comment

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

LGTM, but I would add tests for it.

@knrt10 knrt10 requested a review from invidian October 19, 2020 10:57
@knrt10 knrt10 force-pushed the knrt10/component-delete-namespace-multiple-releases branch from b562caf to 55f3733 Compare October 19, 2020 10:58
invidian
invidian previously approved these changes Oct 19, 2020
Copy link
Member

@invidian invidian left a comment

Choose a reason for hiding this comment

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

LGTM

@knrt10 knrt10 force-pushed the knrt10/component-delete-namespace-multiple-releases branch from 55f3733 to 0372040 Compare October 19, 2020 11:54
@knrt10 knrt10 requested a review from invidian October 19, 2020 11:54
invidian
invidian previously approved these changes Oct 19, 2020
ipochi
ipochi previously approved these changes Oct 20, 2020
Copy link
Member

@ipochi ipochi left a comment

Choose a reason for hiding this comment

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

One suggestion, but other than that looks good.
Lovely work @knrt10 🎉

Glad my idea listing helm releases in the namespace worked out quite nicely :)

@knrt10 knrt10 dismissed stale reviews from ipochi and invidian via 945b4b5 October 20, 2020 07:17
@knrt10 knrt10 force-pushed the knrt10/component-delete-namespace-multiple-releases branch from 0372040 to 945b4b5 Compare October 20, 2020 07:17
@knrt10 knrt10 requested review from invidian and ipochi October 20, 2020 07:18
knrt10 added 4 commits October 21, 2020 11:52
User should know that before deleting a component that other helm
release exists in a namespace.

closes: #1077
Signed-off-by: knrt10 <kautilya@kinvolk.io>
Signed-off-by: knrt10 <kautilya@kinvolk.io>
Signed-off-by: knrt10 <kautilya@kinvolk.io>
Headlamp is installed in `lokomotive-system` so deleting it along with
namespace should throw error.

Signed-off-by: knrt10 <kautilya@kinvolk.io>
@knrt10 knrt10 force-pushed the knrt10/component-delete-namespace-multiple-releases branch from 945b4b5 to d808ec0 Compare October 21, 2020 06:23
Copy link
Member

@ipochi ipochi left a comment

Choose a reason for hiding this comment

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

Thank you for the PR @knrt10 🎉

lgtm

@knrt10 knrt10 merged commit f79a4ec into master Oct 21, 2020
@knrt10 knrt10 deleted the knrt10/component-delete-namespace-multiple-releases branch October 21, 2020 10:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Prevent deleting of component namespace if any other release object exists in this namespace

3 participants