-
Notifications
You must be signed in to change notification settings - Fork 67
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
Adding a simple function to test env vars #103
Adding a simple function to test env vars #103
Conversation
The idea is to create go-template based function with sprig lib. Sprig supports env and expandenv[1]. Using this it will be possilbe to return generated documents with values based on envs and data fields. [1] http://masterminds.github.io/sprig/os.html
this is for kubernetes-sigs/kustomize#2999 |
0c83936
to
73d6e2f
Compare
added e2e testing for templater
73d6e2f
to
5e54be3
Compare
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.
Thanks, this makes sense in the context of testing env variables.
4d29606
to
19a9756
Compare
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.
LGTM
3098246
to
255b893
Compare
255b893
to
0574172
Compare
the templater uses go-template engine, sprit library and introduced KYAML go-template library to be able to flexibly transform documents. Please refer to README for more information.
02fcf68
to
6cf08d7
Compare
a937ad2
to
95f3bc3
Compare
The previous iteration was too complicated. Created the easy function to test env variables
c519c4e
to
553ae02
Compare
553ae02
to
a6fcaa3
Compare
@frankfarzan sorry for the delay with the new version. PS:
|
This function was created based the request from kustomize team:
this is for kubernetes-sigs/kustomize#2999
Please pay attention that go functions don't get built, so to make my e2e work I've done this:
84f2c57#diff-60fe268f71ae7f8409aff40d0a3e51d8