mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
fix(gateway-helm): requested changes
This commit is contained in:
@@ -35,8 +35,16 @@ spec:
|
||||
securityContext:
|
||||
{{- toYaml . | nindent 12 }}
|
||||
{{- end }}
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
||||
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}
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: {{ .Values.secret.name }}
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
{{- if .Values.secret.create -}}
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: {{ .Values.secret.name }}
|
||||
labels:
|
||||
{{- include "infisical-gateway.labels" . | nindent 4 }}
|
||||
type: Opaque
|
||||
data:
|
||||
{{- range $key, $value := .Values.secret.data }}
|
||||
{{ $key }}: {{ $value | b64enc }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
@@ -1,18 +1,10 @@
|
||||
image:
|
||||
repository: infisical/infisical-gateway
|
||||
pullPolicy: IfNotPresent
|
||||
tag: "v0.0.1"
|
||||
tag: "0.41.1"
|
||||
|
||||
secret:
|
||||
# create a new secret (if true) or use existing (if false)
|
||||
create: true
|
||||
# name of the secret to use/create
|
||||
name: "infisical-gateway-secrets"
|
||||
|
||||
# Secret data (only used if create: true)
|
||||
data:
|
||||
TOKEN: ""
|
||||
INFISICAL_API_URL: "https://app.infisical.com"
|
||||
# The secret that contains the environment variables to be used by the gateway, such as INFISICAL_API_URL and TOKEN
|
||||
name: "infisical-gateway-environment"
|
||||
|
||||
resources:
|
||||
limits:
|
||||
@@ -39,6 +31,7 @@ podSecurityContext:
|
||||
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
runAsUser: 1000
|
||||
|
||||
affinity: {}
|
||||
tolerations: {}
|
||||
|
||||
Reference in New Issue
Block a user