vals icon indicating copy to clipboard operation
vals copied to clipboard

Specifying -decode-kubernetes-secrets w/ --post-renderer during helm upgrade results in "X has no deployed releases"

Open amitlin opened this issue 2 years ago • 1 comments

Issue

When integrating vals with helm using the --post-renderer approach, for some reason, while specifying -decode-kubernetes-secrets, helm fails to find the specified release. i.e

helm upgrade --post-renderer vals --post-renderer-args eval --post-renderer-args -decode-kubernetes-secrets argocd .
Error: UPGRADE FAILED: "argocd" has no deployed releases

When adding the namespace using the --namespace, it works fine.

helm upgrade --post-renderer vals --post-renderer-args eval --post-renderer-args -decode-kubernetes-secrets argocd . --namespace argocd-ops
Release "argocd" has been upgraded. Happy Helming!
NAME: argocd
LAST DEPLOYED: Wed Feb 21 12:26:23 2024
NAMESPACE: argocd-ops
STATUS: deployed
REVISION: 70

I could find no apparent reason for this. Removing the -decode-kubernete-secrets flag and leaving only --post-renderer vals --post-renderer-args eval works perfectly. It's only once -decode-kubernetes-secrets is specified that this occurs.

Has anyone encountered this before? Am I doing something wrong?

amitlin avatar Feb 21 '24 10:02 amitlin

I'd like to add that doing the equivalent with helm template works fine:

helm template . | vals eval -decode-kubernetes-secrets

the output is as expected

amitlin avatar Feb 21 '24 11:02 amitlin