Skip to content

Commit

Permalink
fix: Add ability to set envirnment variables in deployment (#18)
Browse files Browse the repository at this point in the history
Signed-off-by: Tony Gilkerson <[email protected]>
  • Loading branch information
tonygilkerson authored Sep 15, 2023
1 parent d5d34d2 commit a259a7d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/zot/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ appVersion: v2.0.0-rc6
description: A Helm chart for Kubernetes
name: zot
type: application
version: 0.1.29
version: 0.1.30
2 changes: 2 additions & 0 deletions charts/zot/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ spec:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
{{- toYaml .Values.env | nindent 12 }}
ports:
- name: zot
containerPort: 5000
Expand Down
10 changes: 10 additions & 0 deletions charts/zot/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,13 @@ pvc:
storage: 8Gi
# Name of the storage class to use if it is different than the default one
storageClassName: null

# List of environment variables to set on the container
env:
# - name: "TEST"
# value: "ME"
# - name: SECRET_NAME
# valueFrom:
# secretKeyRef:
# name: mysecret
# key: username

0 comments on commit a259a7d

Please sign in to comment.