From 84ade3704280ddcca05eada309d7792caa22de0b Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Mon, 12 Dec 2022 16:53:30 +0100 Subject: [PATCH] fixed the misconseption that the or function works like in any other language --- deployment/k3s/templates/deployments/feedback-deployment.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deployment/k3s/templates/deployments/feedback-deployment.yaml b/deployment/k3s/templates/deployments/feedback-deployment.yaml index f1c63ac19..957fce3e4 100644 --- a/deployment/k3s/templates/deployments/feedback-deployment.yaml +++ b/deployment/k3s/templates/deployments/feedback-deployment.yaml @@ -28,7 +28,7 @@ spec: - name: feedback image: "ghcr.io/tum-dev/navigatum-feedback:{{ .Values.branch }}" imagePullPolicy: Always - {{ if .Values.server.GITHUB_TOKEN or .Values.server.JWT_KEY }} + {{ if or (.Values.server.GITHUB_TOKEN) (.Values.server.JWT_KEY) }} envFrom: - secretRef: name: feedback-api-keys # GITHUB_TOKEN, JWT_KEY @@ -57,7 +57,7 @@ spec: port: api failureThreshold: 6 periodSeconds: 1 -{{ if .Values.server.GITHUB_TOKEN or .Values.server.JWT_KEY }} +{{ if or (.Values.server.GITHUB_TOKEN) (.Values.server.JWT_KEY) }} --- apiVersion: v1 kind: Secret