From Barak Korren <bkorren(a)redhat.com>:
Barak Korren has submitted this change and it was merged. (
https://gerrit.ovirt.org/80350
)
Change subject: Add support for env var requests in mock_runner
......................................................................
Add support for env var requests in mock_runner
This patch adds support to specify "${stage}.environment.yaml"
file, which includes requests for environmental vars (YAML)
to be available inside mock's env.
The vars are processed by 'secrets_client' so the
request may contain a request for secret, or a request
for a specified value.
Example for such file:
- name: VAR_NAME
valueFrom:
secretKeyRef:
name: 'required secret name'
key: 'required key from the secret specified above'
- name: ANOTHER_VAR
value: 'some custom value'
Jira:
https://ovirt-jira.atlassian.net/browse/OVIRT-894
Change-Id: I89518d337a6c58a3f1952b82953b264e491a2634
Signed-off-by: Daniel Belenky <dbelenky(a)redhat.com>
---
M mock_configs/mock_runner.sh
1 file changed, 43 insertions(+), 1 deletion(-)
Approvals:
Barak Korren: Looks good to me, approved; Ready for merge
Jenkins CI: Passed CI tests
Daniel Belenky: Verified
--
To view, visit
https://gerrit.ovirt.org/80350
To unsubscribe, visit
https://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I89518d337a6c58a3f1952b82953b264e491a2634
Gerrit-PatchSet: 12
Gerrit-Project: jenkins
Gerrit-Branch: master
Gerrit-Owner: Daniel Belenky <dbelenky(a)redhat.com>
Gerrit-Reviewer: Anton Marchukov <amarchuk(a)redhat.com>
Gerrit-Reviewer: Barak Korren <bkorren(a)redhat.com>
Gerrit-Reviewer: Dafna Ron <dron(a)redhat.com>
Gerrit-Reviewer: Daniel Belenky <dbelenky(a)redhat.com>
Gerrit-Reviewer: Evgheni Dereveanchin <ederevea(a)redhat.com>
Gerrit-Reviewer: Eyal Edri <eedri(a)redhat.com>
Gerrit-Reviewer: Gil Shinar <gshinar(a)redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Nadav Goldin <ngoldin(a)redhat.com>
Gerrit-Reviewer: Sandro Bonazzola <sbonazzo(a)redhat.com>
Gerrit-Reviewer: Shlomo Ben David <sbendavi(a)redhat.com>
Gerrit-Reviewer: Staging Jenkins Server