Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit ce0451a

Browse files
authored
Merge pull request #111 from SoftwareAG/dev-thr
MWS: `extraVolumeMounts` and `extraVolumes` implementation added
2 parents c419125 + 88305fb commit ce0451a

File tree

3 files changed

+18
-10
lines changed

3 files changed

+18
-10
lines changed

mywebmethodsserver/helm/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ helm install wm-mws mywebmethodsserver
4949
| `1.0.2` | `storage.enabled` added in `values.yaml`. For backward reason is this value set to `true` as default. `false` doesn't create and mount any PV. (You can test this feature if you don't want to deploy any own MWS application. MWS is more stateless and has only the database as stateful dependency.) |
5050
| `1.0.2` | `containerName` added in `values.yaml`. Default is the Chart name. (Use `helm repo update` to get latest Helm Chart version.) |
5151
| `1.0.3` | `tpl` function support in `affinity` value added. `topologySpreadConstraints` support added. |
52-
| `1.0.4` | `priorityClassName` support added. Implementation of `extraConfigMaps` added. |
52+
| `1.0.4` | `priorityClassName` support added. Implementation of `extraConfigMaps`, `extraVolumeMounts` and `extraVolumes` added. |
5353

5454
## Values
5555

mywebmethodsserver/helm/README.md.gotmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ helm install wm-mws mywebmethodsserver
4949
| `1.0.2` | `storage.enabled` added in `values.yaml`. For backward reason is this value set to `true` as default. `false` doesn't create and mount any PV. (You can test this feature if you don't want to deploy any own MWS application. MWS is more stateless and has only the database as stateful dependency.) |
5050
| `1.0.2` | `containerName` added in `values.yaml`. Default is the Chart name. (Use `helm repo update` to get latest Helm Chart version.) |
5151
| `1.0.3` | `tpl` function support in `affinity` value added. `topologySpreadConstraints` support added. |
52-
| `1.0.4` | `priorityClassName` support added. Implementation of `extraConfigMaps` added. |
52+
| `1.0.4` | `priorityClassName` support added. Implementation of `extraConfigMaps`, `extraVolumeMounts` and `extraVolumes` added. |
5353

5454
{{ template "chart.valuesSection" . }}

mywebmethodsserver/helm/templates/statefulset.yaml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,26 @@ spec:
145145
mountPath: {{ get $value "path" }}
146146
{{- end }}
147147
{{- end }}
148+
{{- if .Values.extraVolumeMounts }}
149+
{{- if eq "string" (printf "%T" .Values.extraVolumeMounts) }}
150+
{{- tpl .Values.extraVolumeMounts . | nindent 10 }}
151+
{{- else }}
152+
{{- toYaml .Values.extraVolumeMounts | nindent 10 }}
153+
{{- end }}
154+
{{- end }}
148155
resources:
149156
{{- toYaml .Values.resources | nindent 12 }}
150-
{{ if .Values.extraContainers }}
157+
{{- if .Values.extraContainers }}
151158
{{- toYaml .Values.extraContainers | nindent 8 }}
152159
{{- end }}
160+
volumes:
161+
{{- if .Values.extraVolumes }}
162+
{{- if eq "string" (printf "%T" .Values.extraVolumes) }}
163+
{{- tpl .Values.extraVolumes . | nindent 8 }}
164+
{{- else }}
165+
{{- toYaml .Values.extraVolumes | nindent 8 }}
166+
{{- end }}
167+
{{- end }}
153168
{{- with .Values.nodeSelector }}
154169
nodeSelector:
155170
{{- toYaml . | nindent 8 }}
@@ -169,13 +184,6 @@ spec:
169184
tolerations:
170185
{{- toYaml . | nindent 8 }}
171186
{{- end }}
172-
{{- if .Values.extraVolumeMounts }}
173-
{{- if eq "string" (printf "%T" .Values.extraVolumeMounts) }}
174-
{{- tpl .Values.extraVolumeMounts . | nindent 6 }}
175-
{{- else }}
176-
{{- toYaml .Values.extraVolumeMounts | nindent 6 }}
177-
{{- end }}
178-
{{- end }}
179187
volumeClaimTemplates:
180188
{{- if .Values.storage.enabled }}
181189
{{ $defaultVolumeNotMapped := true }}

0 commit comments

Comments
 (0)