Skip to content

Commit 3069af7

Browse files
committed
Update setup.yml to refine namespace creation condition for workflows
- Modified the condition for creating a namespace to ensure it only executes when helm_managed_rhdh is false and the workflow_namespace is not "sonataflow-infra". - Removed redundant condition check to streamline the task logic. Signed-off-by: Gustavo Lira <[email protected]>
1 parent fd8060d commit 3069af7

File tree

1 file changed

+1
-2
lines changed
  • .ibm/orchestrator-infra/roles/deploy-workflows/tasks

1 file changed

+1
-2
lines changed

.ibm/orchestrator-infra/roles/deploy-workflows/tasks/setup.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,11 @@
1818
when: workflow_namespace != "sonataflow-infra" and not helm_managed_rhdh | bool
1919

2020
- name: Create namespace
21-
when: not helm_managed_rhdh | bool
21+
when: not helm_managed_rhdh | bool and workflow_namespace != "sonataflow-infra"
2222
shell: |
2323
oc create namespace {{ workflow_namespace }}
2424
environment:
2525
KUBECONFIG: "{{ kubeconfig_path }}"
26-
when: workflow_namespace != "sonataflow-infra"
2726
ignore_errors: true
2827

2928
- name: Label workflow namespace

0 commit comments

Comments
 (0)