Replies: 2 comments 1 reply
-
I'd also like to be able to do this. I swear I was able to do it once, but not I can't seem to re-create it. Does Viper not have this functionality? Viper should load in all the variables that exist in |
Beta Was this translation helpful? Give feedback.
1 reply
-
Unfortunately, automatic env does not work with unmarshaling at the moment. There are attempts to solve that, but there is no fix yet. The above trick by @X-lem is a neat one. Maybe we could introduce a "LoadAllEnv" option to do that. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to load the environment variables defined in my Kubernetes yaml file like this:
Kubernetes yaml file
Unfortunately, the environment variables are not loading:
Beta Was this translation helpful? Give feedback.
All reactions