-
Notifications
You must be signed in to change notification settings - Fork 31
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
Added env variable support for himl #55
Conversation
return line | ||
|
||
# remove {{ and }} | ||
updated_line = line[2:-2] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about: key: "prefix-{{env(VAR)}}-suffix" ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to offer support for interpolation with prefix/suffix with environment variables? I was thinking something more similar to the secret resolvers
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i guess it's enough now
also a big gap in him is the lack of unit-tests. /cc @danielcoman |
This PR is meant to bring support to Himl for including environment variables when interpolating.
Description
Added support for HIML to use env variables when interpolating the hierarchy.
Related Issue
Resolves #52
Motivation and Context
See description. Also can be used to include build-time variables in a HIML structure.
How Has This Been Tested?
Tested out by adding a field in one of the examples with
Types of changes
Checklist: