File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed
charts/zookeeper-operator/templates Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -35,3 +35,18 @@ app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
3535app.kubernetes.io/managed-by: { { .Release.Service } }
3636helm.sh/chart: "{ { .Chart.Name } }-{ { .Chart.Version | replace " +" " _" } }"
3737{ {- end -} }
38+
39+
40+ { {/*
41+ Default sidecar template
42+ */} }
43+ { {- define " chart.additionalSidecars" } }
44+ { { toYaml .Values.additionalSidecars } }
45+ { {- end} }
46+
47+ { {/*
48+ Default volume template
49+ */} }
50+ { {- define " chart.additionalVolumes" } }
51+ { { toYaml .Values.additionalVolumes } }
52+ { {- end} }
Original file line number Diff line number Diff line change 2323 serviceAccountName : {{ .Values.serviceAccount.name }}
2424 {{- if .Values.additionalVolumes }}
2525 volumes :
26- {{ toYaml .Values. additionalVolumes | indent 6 }}
26+ {{- include "chart. additionalVolumes" . | indent 6 }}
2727 {{- end }}
2828 containers :
2929 - name : {{ template "zookeeper-operator.fullname" . }}
5151{{ toYaml .Values.resources | indent 10 }}
5252 {{- end }}
5353 {{- if .Values.additionalSidecars }}
54- {{ toYaml .Values. additionalSidecars | indent 6 }}
54+ {{- include "chart. additionalSidecars" . | indent 6 }}
5555 {{- end }}
5656 {{- if .Values.nodeSelector }}
5757 nodeSelector :
You can’t perform that action at this time.
0 commit comments