curved-petabyte-84246
02/04/2024, 11:05 AM...
configuration
...
inline:
plugins:
k8s:
inject-finalizer: false
default-env-vars:
FLYTE_AWS_ACCESS_KEY_ID: "foo"
FLYTE_AWS_SECRET_ACCESS_KEY: "secret-bar"
FLYTE_AWS_ENDPOINT: "custom-endpoint"
I logged into the binary pod and located the inline config: /etc/flyte/config.d/100-inline-config.yaml
. I can clearly see that the default-env-vars
is not lowercased.
I tried a little to locate the relevant Go code but didn't find anything that lower-case the env var names.
Thanks for your help!curved-petabyte-84246
02/04/2024, 11:56 AMDefaultEnvVars map[string]string
means an array of map from string to string. Once I added -
to all the entries, everything worked as expected. Not sure why this is the case...curved-petabyte-84246
02/06/2024, 4:09 PMDefaultEnvVars
is a map, the config file should be written as an array of maps?average-finland-92144
02/06/2024, 7:24 PMdefault-env-vars:
- FLYTE_AWS_ACCESS_KEY_ID: "foo"
- FLYTE_AWS_SECRET_ACCESS_KEY: "secret-bar"
- FLYTE_AWS_ENDPOINT: "custom-endpoint"
curved-petabyte-84246
02/06/2024, 9:21 PMaverage-finland-92144
02/08/2024, 3:14 PMcurved-petabyte-84246
02/08/2024, 4:50 PMmap[string]string
)
If you know Go, and have the ability to run it locally I'm open to having a quick debug session with one of the tests I saw in the repositoryaverage-finland-92144
02/08/2024, 5:04 PM