Skip to content

Commit

Permalink
do a more consistent cluster type check for openshift (#832)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmazzitelli authored Oct 28, 2024
1 parent 24f5deb commit 45a5432
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions roles/default/kiali-deploy/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@

- name: Determine the cluster type
set_fact:
is_openshift: "{{ True if 'route.openshift.io' in api_groups else False }}"
is_k8s: "{{ False if 'route.openshift.io' in api_groups else True }}"
is_openshift: "{{ True if 'operator.openshift.io' in api_groups else False }}"
is_k8s: "{{ False if 'operator.openshift.io' in api_groups else True }}"
when:
- is_openshift == False
- is_k8s == False
Expand Down
4 changes: 2 additions & 2 deletions roles/v1.57/kiali-deploy/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@

- name: Determine the cluster type
set_fact:
is_openshift: "{{ True if 'route.openshift.io' in api_groups else False }}"
is_k8s: "{{ False if 'route.openshift.io' in api_groups else True }}"
is_openshift: "{{ True if 'operator.openshift.io' in api_groups else False }}"
is_k8s: "{{ False if 'operator.openshift.io' in api_groups else True }}"
when:
- is_openshift == False
- is_k8s == False
Expand Down
4 changes: 2 additions & 2 deletions roles/v1.65/kiali-deploy/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@

- name: Determine the cluster type
set_fact:
is_openshift: "{{ True if 'route.openshift.io' in api_groups else False }}"
is_k8s: "{{ False if 'route.openshift.io' in api_groups else True }}"
is_openshift: "{{ True if 'operator.openshift.io' in api_groups else False }}"
is_k8s: "{{ False if 'operator.openshift.io' in api_groups else True }}"
when:
- is_openshift == False
- is_k8s == False
Expand Down
4 changes: 2 additions & 2 deletions roles/v1.73/kiali-deploy/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@

- name: Determine the cluster type
set_fact:
is_openshift: "{{ True if 'route.openshift.io' in api_groups else False }}"
is_k8s: "{{ False if 'route.openshift.io' in api_groups else True }}"
is_openshift: "{{ True if 'operator.openshift.io' in api_groups else False }}"
is_k8s: "{{ False if 'operator.openshift.io' in api_groups else True }}"
when:
- is_openshift == False
- is_k8s == False
Expand Down
4 changes: 2 additions & 2 deletions roles/v1.89/kiali-deploy/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@

- name: Determine the cluster type
set_fact:
is_openshift: "{{ True if 'route.openshift.io' in api_groups else False }}"
is_k8s: "{{ False if 'route.openshift.io' in api_groups else True }}"
is_openshift: "{{ True if 'operator.openshift.io' in api_groups else False }}"
is_k8s: "{{ False if 'operator.openshift.io' in api_groups else True }}"
when:
- is_openshift == False
- is_k8s == False
Expand Down

0 comments on commit 45a5432

Please sign in to comment.