Skip to content

Commit

Permalink
delete oauthclient if not needed (this looks like a bug we've had for…
Browse files Browse the repository at this point in the history
… a while)
  • Loading branch information
jmazzitelli committed Oct 31, 2024
1 parent 09b6e73 commit 572f056
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions roles/default/kiali-deploy/tasks/openshift/os-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,17 @@
when:
- is_openshift == True

- name: Delete OAuthClient on OpenShift if not using auth.strategy openshift
k8s:
state: absent
api_version: "oauth.openshift.io/v1"
kind: "OAuthClient"
label_selectors:
- "app.kubernetes.io/instance = {{ kiali_vars.deployment.instance_name }}"
when:
- is_openshift == True
- kiali_vars.auth.strategy != "openshift"

- name: Get the Kiali Route URL
include_tasks: openshift/os-get-kiali-route-url.yml
when:
Expand Down

0 comments on commit 572f056

Please sign in to comment.