requested changes

This commit is contained in:
Daniel Hougaard
2025-05-03 00:20:25 +04:00
parent 5dbded60f4
commit dcb7215b7d

View File

@@ -37,17 +37,20 @@ spec:
{{- end }}
image: "infisical/cli:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
command: ["/sbin/tini", "--", "/bin/sh", "-c"]
args:
- >-
if [ -z "${TOKEN}" ]; then
echo 'ERROR: TOKEN environment variable must be set';
exit 1;
fi &&
/bin/infisical gateway --token ${TOKEN}
- gateway
- --token
- $(TOKEN)
envFrom:
- secretRef:
name: {{ .Values.secret.name }}
env:
- name: TOKEN_VALIDATION
valueFrom:
secretKeyRef:
name: {{ .Values.secret.name }}
key: TOKEN
optional: false
ports:
- name: http
containerPort: {{ .Values.service.port }}