When trying to use an EnvMap in an init container, this error is thrown:
Types of property 'env' are incompatible.
Type '{ "test": string; }' is not assignable to type 'Input<Input<EnvVar>[]>'.
Type '{ "test": string; }' is missing the following properties from type 'Promise<Input<EnvVar>[]>': then, catch, [Symbol.toStringTag], finally
It appears that an EnvMap is required to properly use the secret asEnvValue function to add a secret environment variable.
It may be a separate bug that asEnvValue configures the value as a value and not a valueFrom when added to a list type env.
When trying to use an EnvMap in an init container, this error is thrown:
It appears that an EnvMap is required to properly use the secret
asEnvValue
function to add a secret environment variable.It may be a separate bug that
asEnvValue
configures the value as avalue
and not avalueFrom
when added to a list type env.