Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A more complex type of substitution. #16

Open
timuckun opened this issue Feb 28, 2019 · 1 comment
Open

A more complex type of substitution. #16

timuckun opened this issue Feb 28, 2019 · 1 comment

Comments

@timuckun
Copy link

Say I have the following env vars.

export APP_ENV='development'
export development_DB="dev.db.com"
export production_DB=prod.db.com

I want to render the following in my yaml file.

    env:
          - name: DB
             value: ${${APP_ENV}_DB}

I know the syntax is not valid bash but I hope you know what I mean.

Thanks.

@friend0
Copy link

friend0 commented Nov 7, 2019

@timuckun Probably the go template syntax will get you where you need

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants