From d31685c3d4218a4948939ad1f7fe54126964ce38 Mon Sep 17 00:00:00 2001 From: Michael Dop Date: Mon, 3 Jun 2019 07:06:05 -0400 Subject: [PATCH] enableServiceLinks are only used in k8s >= 1.13.0 (#43) Signed-off-by: Michael Dop --- charts/keycloak/Chart.yaml | 2 +- charts/keycloak/templates/statefulset.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/charts/keycloak/Chart.yaml b/charts/keycloak/Chart.yaml index e26a6ad4..ed98f07b 100644 --- a/charts/keycloak/Chart.yaml +++ b/charts/keycloak/Chart.yaml @@ -1,5 +1,5 @@ name: keycloak -version: 4.14.1 +version: 4.14.2 appVersion: 5.0.0 description: Open Source Identity and Access Management For Modern Applications and Services keywords: diff --git a/charts/keycloak/templates/statefulset.yaml b/charts/keycloak/templates/statefulset.yaml index 1023131e..052ed7a9 100644 --- a/charts/keycloak/templates/statefulset.yaml +++ b/charts/keycloak/templates/statefulset.yaml @@ -36,7 +36,9 @@ spec: hostAliases: {{ toYaml . | indent 8 }} {{- end }} + {{- if (semverCompare ">=1.13-0" .Capabilities.KubeVersion.GitVersion) }} enableServiceLinks: {{ .Values.keycloak.enableServiceLinks }} + {{- end }} serviceAccountName: {{ template "keycloak.serviceAccountName" . }} securityContext: {{ toYaml .Values.keycloak.securityContext | indent 8 }}