Skip to content

Commit

Permalink
fixed the misconseption that the or function works like in any other …
Browse files Browse the repository at this point in the history
…language
  • Loading branch information
CommanderStorm committed Dec 12, 2022
1 parent 91d4ab4 commit 84ade37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deployment/k3s/templates/deployments/feedback-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 84ade37

Please sign in to comment.