Skip to content

Commit

Permalink
feat: add support for extra volumes
Browse files Browse the repository at this point in the history
Add support for extra volumes. This can be useful for mounting files
from k8s secrets and referencing them from the flipt config (e.g. Git
SSH key files).
  • Loading branch information
jalaziz committed Nov 13, 2023
1 parent 0f0614c commit 1337ea3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions charts/flipt/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ spec:
{{- if .Values.persistence.subPath }}
subPath: {{ .Values.persistence.subPath }}
{{- end }}
{{ if .Values.extraVolumeMounts }}
{{- toYaml .Values.extraVolumeMounts | nindent 12 }}
{{- end }}
livenessProbe:
httpGet:
path: /health
Expand All @@ -80,6 +83,9 @@ spec:
{{- else }}
emptyDir: {}
{{- end }}
{{- if .Values.extraVolumes }}
{{- toYaml .Values.extraVolumes | nindent 8 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
12 changes: 12 additions & 0 deletions charts/flipt/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -189,3 +189,15 @@ metrics:
scheme: http
# -- ServiceMonitor will use these tlsConfig settings to make the health check requests
tlsConfig: null

# extraVolumeMounts is a list of extra volumes to mount to the flipt container
# - name: flipt-git-ssh-key
# mountPath: /etc/flipt/ssh.key
# subPath: ssh.key
extraVolumeMounts: []

# extraVolumes is a list of extra volumes to mount to the pod
# - name: flipt-git-ssh-key
# secret:
# secretName: flit-git-ssh-key-secret
extraVolumes: []

0 comments on commit 1337ea3

Please sign in to comment.