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