add extraVolumes & extraVolumeMounts support (#98)

Co-authored-by: Jeff Billimek <jeff@billimek.com>
This commit is contained in:
Michael Kötter 2020-10-26 15:08:00 +01:00 committed by GitHub
parent 714708050a
commit 2282b4113b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 1 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "1.6.12" appVersion: "1.6.12"
description: Eclipse Mosquitto - An open source MQTT broker description: Eclipse Mosquitto - An open source MQTT broker
name: mosquitto name: mosquitto
version: 0.3.3 version: 0.4.0
keywords: keywords:
- message queue - message queue
- MQTT - MQTT

View File

@ -44,6 +44,7 @@ spec:
mountPath: /mosquitto/config mountPath: /mosquitto/config
- name: data - name: data
mountPath: /mosquitto/data mountPath: /mosquitto/data
{{- if .Values.extraVolumeMounts }}{{ toYaml .Values.extraVolumeMounts | trim | nindent 12 }}{{ end }}
volumes: volumes:
- name: configmap - name: configmap
configMap: configMap:
@ -57,6 +58,7 @@ spec:
persistentVolumeClaim: persistentVolumeClaim:
claimName: {{ .Values.persistence.existingClaim }} claimName: {{ .Values.persistence.existingClaim }}
{{- end }} {{- end }}
{{- if .Values.extraVolumes }}{{ toYaml .Values.extraVolumes | trim | nindent 8 }}{{ end }}
{{- with .Values.nodeSelector }} {{- with .Values.nodeSelector }}
nodeSelector: nodeSelector:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}

View File

@ -74,3 +74,15 @@ persistence:
size: 5Gi size: 5Gi
# customConfig: # customConfig:
# Any extra volumes to define for the pod
extraVolumes: []
# - name: example-name
# hostPath:
# path: /path/on/host
# type: DirectoryOrCreate
# Any extra volume mounts to define for the containers
extraVolumeMounts: []
# - name: example-name
# mountPath: /path/in/container