Skip to content

Commit

Permalink
feat: Ability to provide extra volumes to containers
Browse files Browse the repository at this point in the history
  • Loading branch information
khvn26 committed Mar 2, 2024
1 parent 235c550 commit dfe9179
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 4 deletions.
4 changes: 2 additions & 2 deletions charts/flagsmith/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: flagsmith
description: Flagsmith
type: application
version: 0.26.0
appVersion: 2.102.0
version: 0.27.0
appVersion: 2.103.0
dependencies:
- name: postgresql
repository: https://charts.helm.sh/stable
Expand Down
5 changes: 4 additions & 1 deletion charts/flagsmith/templates/deployment-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,12 @@ spec:
{{- with .Values.api.extraContainers }}
{{- toYaml . | nindent 6 }}
{{- end }}
{{- if .Values.api.influxdbSetup.enabled }}
volumes:
{{- if .Values.api.influxdbSetup.enabled }}
- name: influxdb-setup
configMap:
name: {{ template "flagsmith.fullname" . }}-influxdb-setup
{{- end }}
{{- with .Values.api.extraVolumes }}
{{- toYaml . | nindent 6 }}
{{- end }}
4 changes: 4 additions & 0 deletions charts/flagsmith/templates/deployment-frontend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,8 @@ spec:
{{- with .Values.frontend.extraContainers }}
{{- toYaml . | nindent 6 }}
{{- end }}
volumes:
{{- toYaml . | nindent 6 }}
{{- end }}
{{- with .Values.api.extraVolumes }}
{{- end }}
4 changes: 4 additions & 0 deletions charts/flagsmith/templates/deployment-pgbouncer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,5 +136,9 @@ spec:
{{ toYaml .Values.pgbouncer.resources | indent 10 }}
{{- with .Values.pgbouncer.extraContainers }}
{{- toYaml . | nindent 6 }}
{{- end }}
volumes:
{{- with .Values.pgbouncer.extraVolumes }}
{{- toYaml . | nindent 6 }}
{{- end }}
{{- end }}
4 changes: 4 additions & 0 deletions charts/flagsmith/templates/deployment-task-processor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,9 @@ spec:
{{ toYaml .Values.taskProcessor.resources | indent 10 }}
{{- with .Values.taskProcessor.extraContainers }}
{{- toYaml . | nindent 6 }}
{{- end }}
volumes:
{{- with .Values.api.extraVolumes }}
{{- toYaml . | nindent 6 }}
{{- end }}
{{- end }}
6 changes: 5 additions & 1 deletion charts/flagsmith/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ api:
enabled: false
extraInitContainers: []
extraContainers: []
extraVolumes: []
logging:
format: generic # options are generic or json.

Expand Down Expand Up @@ -132,6 +133,7 @@ frontend:
timeoutSeconds: 10
extraInitContainers: []
extraContainers: []
extraVolumes: []

# See https://docs.flagsmith.com/deployment/task-processor
taskProcessor:
Expand Down Expand Up @@ -184,6 +186,7 @@ taskProcessor:
# runAsGroup: 1000
extraInitContainers: []
extraContainers: []
extraVolumes: []

postgresql:
enabled: true
Expand Down Expand Up @@ -250,6 +253,7 @@ pgbouncer:
timeoutSeconds: 2
extraInitContainers: []
extraContainers: []
extraVolumes: []

influxdb2:
enabled: true
Expand Down Expand Up @@ -324,7 +328,7 @@ ingress:
# kubernetes.io/tls-acme: "true"
hosts:
- host: chart-example.local
paths: [ ]
paths: []
tls: []
# - secretName: chart-example-tls
# hosts:
Expand Down

0 comments on commit dfe9179

Please sign in to comment.