Skip to content

Commit

Permalink
( (#985)
Browse files Browse the repository at this point in the history
Signed-off-by: Amit Bhatt <[email protected]>
  • Loading branch information
amitbhatt818 authored and Karthik Satchitanand committed Dec 9, 2019
1 parent 62eedb3 commit 0036a40
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions executor/experiment_volumes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,19 @@
args:
executable: /bin/bash
register: c_mount_path

- name: validate secrets present inside cluster or not.
shell: >
kubectl get secrets -n {{c_app_ns}} --no-headers -o=custom-columns=NAME:".metadata.name"
args:
executable: /bin/bash
register: secret_present

- name: Check existence of secrets
fail:
msg: "secret {{ item }} doesn't exist in cluster"
when: item not in secret_present.stdout_lines
with_items: "{{ c_secret_name.stdout_lines }}"

when: secret_defined != ''

Expand Down

0 comments on commit 0036a40

Please sign in to comment.