Yash Desai
1542c4d2f4
Allow composing env var from existing env vars. ( #643 )
...
Example:
env name: FOO
value: "foo"
name: BAR
value: "bar"
name: FOOBAR
value: "${FOO}${BAR}" <-- should expand to: "foobar"
Added testcase for the same as well.
Change is based on kubelet_pods.go.
Simplified some of the existing code.
2019-06-01 09:41:10 -07:00
Yash Desai
de32752395
Set container env var using services. ( #573 )
...
* Introduce service env vars.
2019-04-17 11:30:39 -07:00
Brian Goff
947b530f1e
Replace testify with gotest.tools ( #553 )
...
* vendor gotest.tools
* Run gotest.tools migration tools
* Fixup tests that were improperly converted
* Remove unused testify package vendors
2019-03-28 17:08:12 -07:00
Vineeth Reddy
5cea3e7ea8
FieldRef feature for DownwardAPI ( #534 )
...
* FieldRef feature for DownwardAPI
Signed-off-by: VineethReddy02 <vineethpothulapati@outlook.com >
* Unit tests for FieldRef
Signed-off-by: VineethReddy02 <vineethpothulapati@outlook.com >
2019-03-08 11:15:08 -08:00
Paulo Pires
323c02d468
env: fix resource reference Optional nil pointer ( #491 )
...
Signed-off-by: Paulo Pires <pjpires@gmail.com >
2019-01-08 10:52:56 -08:00
Paulo Pires
4c80760079
tests: add "test/util" subpackage
...
Signed-off-by: Paulo Pires <pjpires@gmail.com >
2018-12-15 11:01:42 +00:00
Paulo Pires
f839db4692
tests: envvars processing
...
Signed-off-by: Paulo Pires <pjpires@gmail.com >
2018-12-15 11:01:40 +00:00