From a7172b28bb44bfc39b377e21305cafeeee034d6b Mon Sep 17 00:00:00 2001 From: Calvin Audier Date: Wed, 16 Oct 2024 15:41:45 +0200 Subject: [PATCH] Fix if condition that was always true Signed-off-by: Calvin Audier --- charts/litmus/templates/auth-server-deployment.yaml | 2 +- charts/litmus/templates/frontend-deployment.yaml | 2 +- charts/litmus/templates/server-deployment.yaml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/charts/litmus/templates/auth-server-deployment.yaml b/charts/litmus/templates/auth-server-deployment.yaml index b37fdb3f..57185cb9 100644 --- a/charts/litmus/templates/auth-server-deployment.yaml +++ b/charts/litmus/templates/auth-server-deployment.yaml @@ -28,7 +28,7 @@ spec: {{- if .Values.portal.server.customLabels }} {{ toYaml .Values.portal.server.customLabels | nindent 8 }} {{- end }} - {{- if "litmus-portal.podannotations.auth-server"}} + {{- if include "litmus-portal.podannotations.auth-server" . }} annotations: {{- include "litmus-portal.podannotations.auth-server" . | indent 8 }} {{- end}} diff --git a/charts/litmus/templates/frontend-deployment.yaml b/charts/litmus/templates/frontend-deployment.yaml index e7b2b1fd..b9e88591 100644 --- a/charts/litmus/templates/frontend-deployment.yaml +++ b/charts/litmus/templates/frontend-deployment.yaml @@ -28,7 +28,7 @@ spec: {{- if .Values.portal.frontend.customLabels }} {{ toYaml .Values.portal.frontend.customLabels | nindent 8 }} {{- end }} - {{- if "litmus-portal.podannotations.frontend"}} + {{- if include "litmus-portal.podannotations.frontend" . }} annotations: {{- include "litmus-portal.podannotations.frontend" . | indent 8 }} {{- end}} diff --git a/charts/litmus/templates/server-deployment.yaml b/charts/litmus/templates/server-deployment.yaml index 07f18fc8..7af80fbc 100644 --- a/charts/litmus/templates/server-deployment.yaml +++ b/charts/litmus/templates/server-deployment.yaml @@ -26,9 +26,9 @@ spec: {{- if .Values.portal.server.customLabels }} {{ toYaml .Values.portal.server.customLabels | nindent 8 }} {{- end }} - {{- if "litmus-portal.podannotations.auth-server"}} + {{- if include "litmus-portal.podannotations.graphql-server" . }} annotations: - {{- include "litmus-portal.podannotations.auth-server" . | indent 8 }} + {{- include "litmus-portal.podannotations.graphql-server" . | indent 8 }} {{- end}} spec: automountServiceAccountToken: {{ .Values.portal.server.graphqlServer.automountServiceAccountToken }}