Skip to content
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

Uninstall goal do not respect releaseName parameter #350

Closed
tipame opened this issue Feb 6, 2024 · 0 comments
Closed

Uninstall goal do not respect releaseName parameter #350

tipame opened this issue Feb 6, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@tipame
Copy link

tipame commented Feb 6, 2024

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
@sschnabe sschnabe self-assigned this Feb 6, 2024
@sschnabe sschnabe added the bug Something isn't working label Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants