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
So we have potential cases where DECK_ACME_ACCOUNT_KEY is set, in the helm context when deploying the deck config. However by this if condition it makes the deck file merge unusable because it's not a valid yaml file.
What we can do is introducing envOptional to get rid of this problem. So envOptional would just output an empty string ''; in addition to this we can add also a nullFallback function to return null in case of empty string. So in this case would have a template like this:
Currently all env variables need to be set when using deck, however it creates a problem with some cases and deck usages. Take this as an example:
So we have potential cases where
DECK_ACME_ACCOUNT_KEY
is set, in the helm context when deploying the deck config. However by thisif
condition it makes thedeck file merge
unusable because it's not a validyaml
file.What we can do is introducing
envOptional
to get rid of this problem. SoenvOptional
would just output an empty string''
; in addition to this we can add also anullFallback
function to returnnull
in case of empty string. So in this case would have a template like this:will output
with
nullFallback
we would have thiswill output
And this would solve many of templating issues.
The text was updated successfully, but these errors were encountered: