-
Notifications
You must be signed in to change notification settings - Fork 290
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
.Release.Revision
not working correctly in diff
#253
Comments
I just had a quick look and it seems that the issue isn't really related to the plugin itself. I ran a quick test and I was able to reproduce. All Helm versions I used for this test: 3.4.1 and 3.5.0 |
And.... this is why: The template command uses the install method to generate the templates. This method sets the revision to 1 as it thinks it's the first deployment of the release |
Ok, so apparently helm template works as intended. |
Any update on whether helm-diff will switch to |
It is very annoying behavior. We have one-time jobs for database migrations and it is triggered each time, no matter if we changed something on not. As far as I can see, helm-diff is not maintained actively? |
@strainovic Hey! What is the point to calling it not maintained actively? Are you willing to contribute? |
I've never realized As we need to handle diffing on first install too, probably we'd need to use |
I was blindly beliving
Line 134 in 0882d8c
I'm not fully sure if it's safe to fully migrate helm-diff to use Should we add some envvar to toggle helm-diff to use Line 141 in 0882d8c
|
Hi @mumoshu, I told you that as I haven't seen any commit almost for a year, while a lot of things have been changed since then. My knowledge in Golang is very limited, but if I find any spot where I can contribute, I would do it :) Thank you @mumoshu for your amazing work! |
@strainovic Thanks! Gotcha. I was rather in an impression that that kind of inactivity means maturity of the project :) I use helm-diff and helmfile and haven't seen big blockers for a year or so. I occasionally review issues and pull requests but most of the time (1) they look like not necessities but nice-to-haves, good workarounds exist, or (2)no preceding issues are written to clarify the goals of the changes so I'm unsure if I should merge it or (3)have no tests or manual test report so I'm not sure if I can safely merge it or (4) I responded/asked question(s) but no one answers, or (5)many people talk about big dreams but no one actually contributes code 😢 Regarding this issue, I already took some time to test And I thought it's reasonable and forgivable to wait a few weeks until anyone tries to contribute, as this is annoying but not critical as you can just omit
If you've specific/critical things helm-diff needs to address, please feel free to raise issues. I can't promise to do everyone's all works myself, but I'll try keeping my best to maintain the project! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This will pickup helm revision properly databus23#253
This will pickup helm revision properly databus23/helm-diff#253
This will pickup helm revision properly databus23/helm-diff#253
/please fix /pretty-please fix |
@mumoshu thanks for thinking about this. In my opinion risky features should be rolled out with a feature flag. Eg I'm not a great go programmer but this issue is really plaguing me. I will literally pay money for someone to fix this. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
/please fix /pretty-please fix |
Hey, in my current position we are using are setting a label with So if diff could return the correct revision, would be great to not have a misleading output. |
Hi, we have a pod label as follows that includes the helm revision number as a value:
This seems to work fine with helm, but with helm diff, the value is always displayed as "1" in the diff:
Observed output in diff:
Expected output in diff:
The text was updated successfully, but these errors were encountered: