Skip to content

Commit c492bdd

Browse files
committed
cluster_deploy_operator: save the list of CSV that exist
in case we search for the wrong one
1 parent 7b19610 commit c492bdd

File tree

1 file changed

+6
-0
lines changed
  • roles/cluster/cluster_deploy_operator/tasks

1 file changed

+6
-0
lines changed

roles/cluster/cluster_deploy_operator/tasks/main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,12 @@
283283
when: operator_csv_phase.stdout != "Succeeded"
284284

285285
rescue:
286+
- name: Store the CSV that have been installed
287+
shell:
288+
oc get ClusterServiceVersion
289+
-n "{{ cluster_deploy_operator_namespace }}"
290+
> {{ artifact_extra_logs_dir }}/all_csv.status
291+
286292
- name: Capture the Catalog Operator logs (debug)
287293
shell:
288294
oc logs deployment.apps/catalog-operator

0 commit comments

Comments
 (0)