-
Notifications
You must be signed in to change notification settings - Fork 563
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
Do fail on a possible typo in needs
entries
#2026
Conversation
Helmfile kindly fails with a friendly error when you made a typo in a `needs` entry, i.e. a `needs` entry included a reference to a release that is not defined in the helmfile config. Example Output: ``` in ./helmfile.needs.yaml: release(s) "app" depend(s) on an undefined release "infrastructure/cert-manager2". Perhaps you made a typo in `needs` or forgot defining a release named "cert-manager2" with appropriate `namespace` and `kubeContext`? ``` This prevents issues like #1959
…ore duplicated releases that are intended to be de-duplicated before DAG calculation using selectors
Related to that change: #2048 Should I provide an example repo to reproduce an issue? |
HI Users, I get this error with multiples releases in a machine where is the first time execute the helmfile command. |
@adecchi-2inno Hmm, isn't that due to the version difference? |
This release seems to be breaking common usage of selectors, when one release "needs" another. $ helmfile --selector=release=vault status
in ./helmfile.yaml: in .helmfiles[1]: in csi-secrets-store/helmfile.yaml: release(s) "vault/vault" depend(s) on an undefined release "kube-system/secrets-store-csi-driver". Perhaps you made a typo in "needs" or forgot defining a release named "secrets-store-csi-driver" with appropriate "namespace" and "kubeContext"?
$ helmfile --selector=release=vault template --skip-deps
in ./helmfile.yaml: in .helmfiles[1]: in csi-secrets-store/helmfile.yaml: release(s) "vault/vault" depend(s) on an undefined release "kube-system/secrets-store-csi-driver". Perhaps you made a typo in "needs" or forgot defining a release named "secrets-store-csi-driver" with appropriate "namespace" and "kubeContext"? These work fine with the previous version |
* Do fail on a possible typo in `needs` entries Helmfile kindly fails with a friendly error when you made a typo in a `needs` entry, i.e. a `needs` entry included a reference to a release that is not defined in the helmfile config. Example Output: ``` in ./helmfile.needs.yaml: release(s) "app" depend(s) on an undefined release "infrastructure/cert-manager2". Perhaps you made a typo in `needs` or forgot defining a release named "cert-manager2" with appropriate `namespace` and `kubeContext`? ``` This prevents issues like roboll#1959 * Fix regression in helmfile-diff (This may break when you had two or more duplicated releases that are intended to be de-duplicated before DAG calculation using selectors * Fix regression when you used selector to deduplicate releases before DAG calculation * Comments * Fix regressions in helmfile-apply and helmfile-sync * Fix regression in duplicate release detection
|
@vbergbauer @wutongjoe I can't say for sure because it really depends on your exact setup, but try messing with |
And please don't be hesitant to open new issues with full details rather than commenting on an existing pull request. That makes me tracking the problem too hard! |
Helmfile kindly fails with a friendly error when you made a typo in a
needs
entry, i.e. aneeds
entry to an undefined release triggers an error, instead of silently running the helmfile command with a wrong DAG.Example Output:
This prevents issues like #1959