You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have reproduced and confirmed that this is a bug. It is caused by the conditional inclusion of lookup into the function map.
Moreover, a second bug exists in lookup: It attempts to contact the Kubernetes API server during helm template calls, which is not allowed. And if no KUBECONFIG is set, lookup produces a lengthy error message.
In both cases, the correct behavior is for lookup to return an empty dictionary regardless of what the input is. This follows the established pattern of other cluster-sensitive templating directives.
@technosophos is there any chance the #7969 fix can be back-ported to helm 2 ? I tried to do that myself, but it's not a trivial cherry-pick and I'm not an advanced helm contributor.
Sorry @stefannica. We are no longer accepting bug fixes for Helm 2. Only security fixes. We are fully dropping Helm 2 support in just under a month's time.
Activity
technosophos commentedon Apr 20, 2020
I have reproduced and confirmed that this is a bug. It is caused by the conditional inclusion of
lookupinto the function map.Moreover, a second bug exists in
lookup: It attempts to contact the Kubernetes API server duringhelm templatecalls, which is not allowed. And if no KUBECONFIG is set,lookupproduces a lengthy error message.In both cases, the correct behavior is for
lookupto return an empty dictionary regardless of what the input is. This follows the established pattern of other cluster-sensitive templating directives.technosophos commentedon Apr 21, 2020
I am working on a fix.
stefannica commentedon Oct 14, 2020
@technosophos is there any chance the #7969 fix can be back-ported to helm 2 ? I tried to do that myself, but it's not a trivial cherry-pick and I'm not an advanced helm contributor.
bacongobbler commentedon Oct 14, 2020
Sorry @stefannica. We are no longer accepting bug fixes for Helm 2. Only security fixes. We are fully dropping Helm 2 support in just under a month's time.
See https://helm.sh/blog/helm-v2-deprecation-timeline/ for more information.
Bump helm 2 version for linter and allow helm 2 linter failures
Bump helm 2 version for linter and allow helm 2 linter failures
Bump helm 2 version for linter and allow helm 2 linter failures
Bump helm 2 version for linter and allow helm 2 linter failures