Skip to content

Commit 4f7c7fd

Browse files
[kustomize_deploy] Disable osdpd suffix generate by default
With [1] architecture based jobs are broken as deployment name is generated while status check is with static name. The jobs/deployment that needs generated deployment reruns can enable it by setting cifmw_kustomize_deploy_osdpd_suffix_generate: true. [1] #3766 Signed-off-by: Yatin Karel <ykarel@redhat.com>
1 parent b0fb692 commit 4f7c7fd

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

roles/kustomize_deploy/defaults/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,9 @@ cifmw_kustomize_deploy_dp_dest_file: >-
229229
# Set explicitly to pin a known value (e.g. for idempotent re-runs).
230230
cifmw_kustomize_deploy_osdpd_suffix: ""
231231

232+
# Generate deployment suffix if set to true
233+
cifmw_kustomize_deploy_osdpd_suffix_generate: false
234+
232235
cifmw_kustomize_deploy_delay: 10
233236
cifmw_kustomize_deploy_retries_subscription: 90
234237
cifmw_kustomize_deploy_retries_install_plan: 60

roles/kustomize_deploy/tasks/execute_step.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@
9494
- _tag_name_id not in _skip_tags
9595
block:
9696
- name: Generate OSDPD run suffix (once per play)
97-
when: _cifmw_kustomize_deploy_run_suffix is not defined
97+
when:
98+
- cifmw_kustomize_deploy_osdpd_suffix_generate | bool
99+
- _cifmw_kustomize_deploy_run_suffix is not defined
98100
ansible.builtin.set_fact:
99101
_cifmw_kustomize_deploy_run_suffix: >-
100102
{{

0 commit comments

Comments
 (0)