From 86a8aa3923510acf7c7c36cdab768ef22c4ad654 Mon Sep 17 00:00:00 2001 From: dvirlabs Date: Thu, 22 May 2025 16:07:01 +0300 Subject: [PATCH] Fix kibana cr --- charts/eck-resources/templates/kibana.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/eck-resources/templates/kibana.yaml b/charts/eck-resources/templates/kibana.yaml index 0123e10..3176bf5 100644 --- a/charts/eck-resources/templates/kibana.yaml +++ b/charts/eck-resources/templates/kibana.yaml @@ -19,7 +19,7 @@ spec: rp.response_type: "code" rp.redirect_uri: "https://{{ .Values.host }}/api/security/oidc/callback" rp.post_logout_redirect_uri: "https://{{ .Values.host }}" -{{- if .Values.oidc }} +{{- if and .Values.oidc .Values.oidc.existingSecret }} rp.client_secret: {{ (lookup "v1" "Secret" "monitoring" .Values.oidc.existingSecret).data.clientSecret | b64dec | quote }} idp.metadata_url: "https://keycloak.dvirlabs.com/realms/{{ .Values.oidc.realm }}/.well-known/openid-configuration" idp.entity_id: "https://keycloak.dvirlabs.com/realms/{{ .Values.oidc.realm }}" @@ -36,4 +36,4 @@ spec: disabled: true service: spec: - type: ClusterIP + type: ClusterIP \ No newline at end of file