<html><body>
<h3>Daniel Belenky created OVIRT-1988:</h3>
<pre>   Summary: Add default behavior in secret_resolvers.py
       Key: OVIRT-1988
       URL: https://ovirt-jira.atlassian.net/browse/OVIRT-1988
   Project: oVirt - virtualization made easy
Issue Type: Improvement
Components: mock_runner
  Reporter: Daniel Belenky
  Assignee: infra</pre>
<p>Currently, when users try to run CI locally (currently with mock_runner), if their project has a secret dependency they have to either write a local secrets file, or to temporary modify their environment.yaml.</p>
<p>The file format should have support for default behavior in case a secret was not found. Maybe something similar to:</p>
<h3>{code:java}</h3>
<ul><li><p>name: MY_SECRET valueFrom:</p>
<pre>secretKeyRef:
  name: secret_name
  key: key_from_secret
  default:
    from-env: ENV_VAR_NAME
    # OR
    value: default-value</pre></li></ul>
<p>{code}</p>
<p>&mdash; This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100083)</p>

<img src="https://u4043402.ct.sendgrid.net/wf/open?upn=i5TMWGV99amJbNxJpSp2-2BJ33BSM3tuiUfRTk64K-2BOjH6OfHwHF07KbWgKiV6gm3mB1II18BSBtXPREj0WkjfqAgXWnshvNmi3g7hf7kv7FqBki2RZzgFbqRnK9goqqJkcAizW7noi7EpyC7Cyq4m5LcFY7gF1dfPA71ctDJv1itP55J4TaIQ0OVOFPKLlEkDqvR5zu-2BOiUvMmzEJIbMQEdd5TIXd0EUIrZzpWk0Acbta5iy-2BWecOD-2FMYCrOtNJelxjc00-2FWTZ71hEdXv3ZQ7ya7gk37BO4FePP-2FjIF8TiaOTPhsa1Ah-2FZBVbsM9DGSTI36S8-2BF5OA8kZZgwKLzQPeEK61L538Uk2svh265Fh95a95ZWvmWmscCVRfixN-2BK37HfNw8SDE7ySdH4poqqtslihW4KP8HFqgiC9hAITq6EPnqIC4RrCfVzrxgHlk-2Bo42" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;"/>
</body></html>