소스 검색

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 }}"