Change in jenkins[master]: Add support for env var requests in mock_runner

Code Review gerrit at ovirt.org
Sun Aug 27 07:58:10 UTC 2017


>From Barak Korren <bkorren at 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 at 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 at redhat.com>
Gerrit-Reviewer: Anton Marchukov <amarchuk at redhat.com>
Gerrit-Reviewer: Barak Korren <bkorren at redhat.com>
Gerrit-Reviewer: Dafna Ron <dron at redhat.com>
Gerrit-Reviewer: Daniel Belenky <dbelenky at redhat.com>
Gerrit-Reviewer: Evgheni Dereveanchin <ederevea at redhat.com>
Gerrit-Reviewer: Eyal Edri <eedri at redhat.com>
Gerrit-Reviewer: Gil Shinar <gshinar at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Nadav Goldin <ngoldin at redhat.com>
Gerrit-Reviewer: Sandro Bonazzola <sbonazzo at redhat.com>
Gerrit-Reviewer: Shlomo Ben David <sbendavi at redhat.com>
Gerrit-Reviewer: Staging Jenkins Server


More information about the Engine-commits mailing list