-
Notifications
You must be signed in to change notification settings - Fork 283
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
Failure to honor lookup function #263
Comments
https://github.com/bacongobbler/helm-patchdiff does not seem to have this problem by the way. |
@jglick - Have you solved this one? I have the exact same case, though I'm using |
@unfor19 no I have no particular workaround other than to tell people looking at the diff to please ignore apparent |
Argh 😞 I intend to use it as part of a pipeline, so it's impossible to tell the pipeline "just ignore it" since I do want to take it into consideration. Btw, if you want to suppress messages about secrets, you can add the following flag
Though it still means you'll get
Update- I've just checked and the lookup function returns an empty
I guess |
I do not think so.
Not actually true, by the way: helm/helm#6901 (comment) |
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. |
I do not think this should be considered stale as it is an ongoing problem with no known workaround. |
Facing the same problem here, while using helmfile which uses helm diff under the hood. |
Are there any plans to actually fix this? I didn't take it if you thought it went agains the design goals or if this is to be treated as a bug? |
Exactly, while I would love to have support for the lookup function there is no support for that in the upstream So as long as there is no support for extracting the correctly rendered output from the helm binary I don't see how to make progress on this issue. |
That makes sense. Let's all help out getting the dry-run fix merged then, looks like a PR has been published but not yet reviewed. |
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. |
We now have the ability to use So, this should be possible with HELM_DIFF_USE_UPGARDE_DRY_RUN=true once helm/helm#9426 gets merged upstream. |
@databus23 I agere and support this. And I have a slightly related discussion to bring in here. In #304, we did introduce dependencies to helm and k8s.io related packages in our three-way merge work. This requires us to keep those dependencies up-to-date. We rely on those dependencies only for converting YAML doc to K8s resource objects and doing three-wary-merging, but template rendering. The part that converts YAML doc to K8s resource objects won't change that often as long as you mostly use stable K8s APIs(apps/v1, ingress/v1, core/v1, etc). Probably it's similar for the three-way merge logic, too. So I think it's fine to introduce helm and k8s deps. But the template renderer changes often in Helm v3, when e.g. a new helm version gets new template functions. So reimplementing the renderer in helm-diff would be a maintenance nightmare. |
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. |
Commenting to make this not-stale (I came here from here - if there's a better place to track this, please let me know!) - I'm still encountering this issue on Helm commit EDIT: Oh, it's closed, which appears to be irreversible. I'm still getting used to Github Issues, sorry! |
FYI, I have created a new issue to progress this and plan to submit a PR once the helm PR is merged |
Unpack diffdemo.zip whose interesting part is
and then run
helm diff upgrade
claims thatsecret/x
would change ifhelm upgrade
were run, when in fact it would not. See #176 and https://github.com/helm/charts/issues/5167#issuecomment-641558251.(Helm 3.5.2, Microk8s 1.20.2,
kubectl
1.20.4,helm-diff
freshly installed so I suppose 3.1.3.)The text was updated successfully, but these errors were encountered: