Переглянути джерело

patch console.config/cluster with logoutRedirect

Grega Bremec 3 тижнів тому
батько
коміт
5c6d7dbc9c
1 змінених файлів з 13 додано та 0 видалено
  1. 13 0
      p0f/operators/roles/rhbk-authn/tasks/main.yml

+ 13 - 0
p0f/operators/roles/rhbk-authn/tasks/main.yml

@@ -235,6 +235,19 @@
 
   when: patched_oauth.changed
 
+- name: Ensure the console has a logoutRedirect
+  kubernetes.core.k8s:
+    kubeconfig: tmp/kubeconfig-ocp4
+    validate_certs: no
+    api_version: config.openshift.io/v1
+    kind: console
+    name: cluster
+    state: patched
+    resource_definition:
+      spec:
+        authentication:
+          logoutRedirect: "https://{{ rhbk.fqdn }}/realms/{{ rhbk.realm | default('sample-realm') }}/protocol/openid-connect/logout"
+
 - name: Ensure OpenShift groups are there as well.
   kubernetes.core.k8s:
     kubeconfig: "{{ kubeadmin_config }}"