Skip to content

Commit e08bc2e

Browse files
committed
Fix bookbag namespace creation issue
This issue is caused by ansible-collections/kubernetes.core#623 Workaround is to not fail on this task when it is reported that projectrequest already exists.
1 parent 27f9df2 commit e08bc2e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ansible/roles/bookbag/tasks/workload.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
metadata:
1919
name: "{{ bookbag_namespace }}"
2020
register: r_create_bookbag_namespace
21+
# Work around https://github.com/ansible-collections/kubernetes.core/issues/623
22+
failed_when: >-
23+
r_create_bookbag_namespace is failed and
24+
'AlreadyExists' not in r_create_bookbag_namespace.msg | default('')
2125
until: r_create_bookbag_namespace is successful
2226
retries: 10
2327
delay: 5

0 commit comments

Comments
 (0)