-
Notifications
You must be signed in to change notification settings - Fork 160
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
HelmRelease uninstalled unexpectedly #864
Comments
A reinstall is performed if any of these fields change: helm-controller/internal/action/verify.go Lines 51 to 74 in 0114b20
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Today I updated flux (v2.1.1 -> v2.2.2) in a cluster and one of our HelmRelease's was unexpectedly uninstalled/installed.
We tracked this down to a change in
targetNamespace
, and now know exactly how this behaves in v2.2.2.There are a couple of interesting factors here which is why I am opening this issue.
targetNamespace
set, butstorageNamespace
was set.helm ls -a -n storage-namespace
showed the namespace to not beflux-system
before the upgrade (I know this because we have two identical clusters).I'm not sure how this chart was deployed with
helm ls
showing a namespace other than the release namespace, but it has been this way for ~2 years. I'm not sure if this was done with flux, the helm cli, or something else (this was before my time).We've never had this issue when upgrading flux in the past; until version 2.2.2 (and helm controller 0.37.2).
I see the text below as part of the helm controller 0.37.0 release notes. We did not expect this uninstall behavior because we did not specify the
targetNamespace
in the HelmRelease manifest.I have a few questions about this and how we might prevent or detect it before deploying.
targetNamespace
change or ignored it. I didn't see any warnings/errors logged about atargetNamespace
mismatch or that in the future this would behave as an uninstall/install. I'd like to understand how it worked previously vs how it works now with regard to uninstall when thetargetNamespace
changes.Appreciate any information you can provide would be greatly appreciated. Thank you!
The text was updated successfully, but these errors were encountered: