diff --git a/charts/keycloakx/templates/httproute.yaml b/charts/keycloakx/templates/httproute.yaml index 6c4b031b..f5348d00 100644 --- a/charts/keycloakx/templates/httproute.yaml +++ b/charts/keycloakx/templates/httproute.yaml @@ -47,7 +47,7 @@ spec: {{- end }} {{- end }} --- -{{- if $httpRoute.console.enabled -}} +{{- if $httpRoute.console.enabled }} apiVersion: gateway.networking.k8s.io/v1 kind: HTTPRoute metadata: diff --git a/charts/keycloakx/templates/serviceaccount.yaml b/charts/keycloakx/templates/serviceaccount.yaml index 10971c52..8e51523d 100644 --- a/charts/keycloakx/templates/serviceaccount.yaml +++ b/charts/keycloakx/templates/serviceaccount.yaml @@ -20,9 +20,8 @@ imagePullSecrets: {{ toYaml . | nindent 4 }} {{- end }} automountServiceAccountToken: {{ .Values.serviceAccount.automountServiceAccountToken }} +{{- if .Values.serviceAccount.allowReadPods }} --- - - {{- if .Values.serviceAccount.allowReadPods -}} kind: ClusterRole apiVersion: rbac.authorization.k8s.io/v1 metadata: @@ -44,5 +43,5 @@ subjects: - kind: ServiceAccount name: {{ include "keycloak.serviceAccountName" . }} namespace: {{ .Release.Namespace }} - {{- end }} +{{- end }} {{- end }}