Skip to content

Commit 8b3093e

Browse files
committed
Adds extraVolumes and extraVolumeMounts to helm
1 parent 15cc62f commit 8b3093e

File tree

2 files changed

+26
-5
lines changed

2 files changed

+26
-5
lines changed

deploy/helm/fire/templates/deployments-statefulsets.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ spec:
8383
subPath: config.yaml
8484
- name: data
8585
mountPath: /data
86+
{{- with .Values.fire.extraVolumeMounts }}
87+
{{- toYaml . | nindent 12 }}
88+
{{- end }}
8689
resources:
8790
{{- toYaml .Values.fire.resources | nindent 12 }}
8891
{{- with .Values.fire.nodeSelector }}
@@ -98,6 +101,9 @@ spec:
98101
{{- toYaml . | nindent 8 }}
99102
{{- end }}
100103
volumes:
104+
{{- with .Values.fire.extraVolumes }}
105+
{{- toYaml . | nindent 8 }}
106+
{{- end }}
101107
- name: config
102108
configMap:
103109
name: {{ include "fire.fullname" . }}-config

deploy/helm/fire/values.yaml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# This is a YAML-formatted file.
33
# Declare variables to be passed into your templates.
44

5-
65
fire:
76
replicaCount: 1
87

@@ -24,7 +23,6 @@ fire:
2423
nameOverride: ""
2524
fullnameOverride: ""
2625

27-
2826
serviceAccount:
2927
# Specifies whether a service account should be created
3028
create: true
@@ -39,7 +37,8 @@ fire:
3937
podSecurityContext:
4038
fsGroup: 10001
4139

42-
securityContext: {}
40+
securityContext:
41+
{}
4342
# capabilities:
4443
# drop:
4544
# - ALL
@@ -56,7 +55,8 @@ fire:
5655
port: 7946
5756
port_name: memberlist
5857

59-
resources: {}
58+
resources:
59+
{}
6060
# We usually recommend not to specify default resources and to leave this as a conscious
6161
# choice for the user. This also increases chances charts run on environments with little
6262
# resources, such as Minikube. If you do want to specify resources, uncomment the following
@@ -77,7 +77,7 @@ fire:
7777
persistence:
7878
enabled: false
7979
accessModes:
80-
- ReadWriteOnce
80+
- ReadWriteOnce
8181
size: 10Gi
8282
annotations: {}
8383
# selector:
@@ -86,6 +86,21 @@ fire:
8686
# subPath: ""
8787
# existingClaim:
8888

89+
extraVolumes:
90+
[]
91+
# - name: backup-volume
92+
# emptydir: {}
93+
94+
extraVolumeMounts:
95+
[]
96+
# - name: testing
97+
# mountPath: /var/lib/testing
98+
# readOnly: false
99+
# - name: test-volume
100+
# mountPath: /var/tmp/test-volume
101+
# existingClaim: test-volume
102+
# readOnly: false
103+
89104
tolerations: []
90105

91106
affinity: {}

0 commit comments

Comments
 (0)