Uninstall goal do not respect releaseName parameter
tipame opened this issue · comments
Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT
Environment (plugin version, maven version, OS, ...):
plugin version: 6.13.0
mvn version: 3.8.1
helm version: 3.8.0
What happened:
I have Helm chart with name simple. Also i have plugin configuration with releaseName paremeter:
<configuration>
<releaseName>my-release</releaseName>
<upgradeWithInstall>true</upgradeWithInstall>
</configuration>
Run upgrade:
[INFO] Upgrading the chart with install C:\Work\Projects\test-project\helm\simple
[DEBUG] Execute: C:\Work\Programs\helm-3.8.0\helm.exe upgrade my-release C:\Work\Projects\test-project\helm\simple --install
[INFO] Release "my-release" does not exist. Installing it now.
[INFO] NAME: my-release
[INFO] STATUS: deployed
Run uninstall:
[INFO] Perform uninstall for chart C:\Work\Projects\test-project\helm\simple
[DEBUG] Execute: C:\Work\Programs\helm-3.8.0\helm.exe uninstall simple
[ERROR] Error: uninstall: Release not loaded: simple: release: not found
As you can see - uninstal goal do not use configured releaseName.
Same behavior with helm.releaseName property.
What you expected to happen:
Uninstall command respect releaseName configuration.
How to reproduce it (as minimally and precisely as possible):
Create chart having name differ from configuried releaseName. Try to install and then uninstall release. Uninstall will fail.
Anything else we need to know:
Second case:
If no releaseName configuration provided upgrade (install) goal will use maven ${artifactId} as releaseName (test-project in my case):
[INFO] Upgrading the chart with install C:\Work\Projects\test-project\helm\simple
[DEBUG] Execute: C:\Work\Programs\helm-3.8.0\helm.exe upgrade test-project C:\Work\test-project\helm\simple --install
[INFO] Release "test-project" does not exist. Installing it now.
At the same time uninstall goal use chart name as relese name:
[INFO] Perform uninstall for chart C:\Work\Projects\test-project\helm\simple
[DEBUG] Execute: C:\Work\Programs\helm-3.8.0\helm.exe uninstall simple
[ERROR] Error: uninstall: Release not loaded: simple: release: not found