-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace all ${VAR} references with env var values in watches yaml (#45)
* replace all ${VAR} references with env var values in watches yaml Signed-off-by: John Mazzitelli <mazz@redhat.com> * don't use regex, just use os.Expand * use t.Setenv * copy-paste error - remove nolint --------- Signed-off-by: John Mazzitelli <mazz@redhat.com>
- Loading branch information
1 parent
8dc66b5
commit f4cb021
Showing
3 changed files
with
72 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
- version: "${WATCH_VERSION}" | ||
group: "app.example.com" | ||
kind: "AnsibleSelectorTest" | ||
playbook: ${WATCH_PLAYBOOK} | ||
selector: | ||
matchLabels: | ||
${WATCH_MATCH_LABEL_VAR_NAME}: "${WATCH_MATCH_LABEL_VAR_VALUE}" | ||
undefined: "${WATCH_UNDEFINED_ENV_VAR}" | ||
matchExpressions: | ||
- {key: ${WATCH_MATCH_EXPRESSIONS_KEY}, operator: In, values: [a, b]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters