We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9cb6066 + 550c693 commit 552c474Copy full SHA for 552c474
templates/mq.yaml
@@ -85,7 +85,11 @@ spec:
85
name: wait-script
86
- name: shared-data
87
persistentVolumeClaim:
88
+ {{- if not .Values.mq.existingClaim }}
89
+ claimName: {{ .Values.mq.existingClaim }}
90
+ {{- else }}
91
claimName: {{ include "netmaker.fullname" . }}-shared-data-pvc
92
+ {{- end }}
93
---
94
apiVersion: v1
95
kind: Service
@@ -105,6 +109,7 @@ spec:
105
109
app: {{ include "netmaker.fullname" . }}-mqtt
106
110
sessionAffinity: None
107
111
112
+{{- if not .Values.mq.existingClaim }}
108
113
kind: PersistentVolumeClaim
114
115
metadata:
@@ -117,6 +122,7 @@ spec:
117
122
requests:
118
123
storage: {{ .Values.mq.storageSize }}
119
124
125
+{{- end }}
120
126
121
127
data:
128
mosquitto.conf: |
0 commit comments