-
Notifications
You must be signed in to change notification settings - Fork 276
fix(e2e): cleanup helm releases in e2e #1886
Conversation
This change will uninstall all Helm releases in the namespaces being cleaned up before deleting the namespaces to avoid the namespaces getting stuck in a Terminating state. Fixes #1880
tests/e2e/common.go
Outdated
@@ -820,7 +820,26 @@ func (td *OsmTestData) Cleanup(ct CleanupType) { | |||
} | |||
|
|||
for _, ns := range testNs.Items { | |||
err := td.DeleteNs(ns.Name) | |||
// Delete Helm releases created in the namespace |
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.
Question. Would it be help if this was run defacto on DeleteNs
code? Just in case someone decided to manually run a DeleteNs
individually (as part of the test) on an NS that had helm resources.
I'm ok eitherway though
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.
Good call. I'll make that change.
Codecov Report
@@ Coverage Diff @@
## main #1886 +/- ##
=======================================
Coverage ? 58.34%
=======================================
Files ? 129
Lines ? 5267
Branches ? 0
=======================================
Hits ? 3073
Misses ? 2191
Partials ? 3 Continue to review full report at Codecov.
|
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.
lgtm
This change will uninstall all Helm releases in the namespaces being cleaned up before deleting the namespaces to avoid the namespaces getting stuck in a Terminating state. Fixes openservicemesh#1880
Description:
This change will uninstall all Helm releases in the namespaces being
cleaned up before deleting the namespaces to avoid the namespaces
getting stuck in a Terminating state.
Fixes #1880
Affected area:
Please answer the following questions with yes/no.
No