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 15, 2022
1 parent 26f6b0b commit dcb1597
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deployment/k3s/templates/deployments/feedback-deployment.yaml
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 dcb1597

Please sign in to comment.