Skip to content

Conversation

mplsgrant
Copy link
Collaborator

Issue

warcli down will throw an error such as

$ helm uninstall tank-0000 
Error: uninstall: Release not loaded: tank-0000: release: not found 

Solution

Adding the default namespace to the command seems to fix this.

@@ -123,7 +123,7 @@ def down():
tanks = get_mission("tank")
with console.status("[yellow]Uninstalling tanks...[/yellow]"):
for tank in tanks:
cmd = f"helm uninstall {tank.metadata.name}"
cmd = f"helm uninstall {tank.metadata.name} --namespace {get_default_namespace()}"
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this is fine for now, but leaving a comment for future self that we will need to rethink this if we are deploying commanders into a separate namespace.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@josibake I'm going to merge then in order to get warcli down working.

As for commanders, perhaps we could concat get_default_namespace with '-commander', and place them in that namespace.

@josibake
Copy link
Collaborator

ACK 900920e

@mplsgrant mplsgrant merged commit b0a78ef into bitcoin-dev-project:main Aug 28, 2024
7 checks passed
@mplsgrant mplsgrant deleted the 2024-08-fix-warcli-down-namespace branch August 28, 2024 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants