Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions roles/ocp4_workload_openshift_ai/tasks/workload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@
kubernetes.core.k8s_info:
api_version: operators.coreos.com/v1alpha1
kind: ClusterServiceVersion
namespace: openshift-operators
namespace: redhat-ods-operator
register: r_csvs

- name: Initialize CSV variable
ansible.builtin.set_fact:
_ocp4_workload_openshift_ai_installed_operator_csv: ""

- name: Find CSV for the rhods operator
set_fact:
_ocp4_workload_openshift_ai_installed_operator_csv: "{{ item.metadata.name }}"
Expand All @@ -31,7 +35,7 @@

- name: Set Openshift AI Version 3 boolean
ansible.builtin.set_fact:
_ocp4_workload_openshift_ai_version_3: "{{ _ocp4_workload_openshift_ai_installed_operator_csv.startswith('rhods-operator.3.') }}"
_ocp4_workload_openshift_ai_version_3: "{{ _ocp4_workload_openshift_ai_installed_operator_csv.startswith('rhods-operator.3.') if _ocp4_workload_openshift_ai_installed_operator_csv else false }}"

- name: Create OpenShift AI Data Science Cluster
when: ocp4_workload_openshift_ai_deploy_dsc | bool
Expand Down