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

Commit c419125

Browse files
authored
Merge pull request #110 from SoftwareAG/dev-thr
Implementation of extraConfigMap added
2 parents 874a8d8 + ad99005 commit c419125

File tree

6 files changed

+96
-4
lines changed

6 files changed

+96
-4
lines changed

developerportal/helm/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ helm install webmethods/developerportal devportal
4848
| `1.0.0` | Initial release |
4949
| `1.0.1` | Supports wM version 11.0. Validate `devportal.port` value in `values.yaml` if you want to use wM image version 11.0. |
5050
| `1.0.2` | `tpl` function support in `affinity` value added. `topologySpreadConstraints` support added. |
51-
| `1.0.3` | `priorityClassName` support added. Error is corrected on using value `useDefaultAffinityRule == true`. Now, the release name is used in condition with `app.kubernetes.io/instance`. `affinity` and `topologySpreadConstraints` support added for Elasticsearch. |
51+
| `1.0.3` | `priorityClassName` support added. Error is corrected on using value `useDefaultAffinityRule == true`. Now, the release name is used in condition with `app.kubernetes.io/instance`. `affinity` and `topologySpreadConstraints` support added for Elasticsearch. Implementation of `extraConfigMaps` added. |
5252

5353
## Values
5454

developerportal/helm/README.md.gotmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ helm install webmethods/developerportal devportal
4848
| `1.0.0` | Initial release |
4949
| `1.0.1` | Supports wM version 11.0. Validate `devportal.port` value in `values.yaml` if you want to use wM image version 11.0. |
5050
| `1.0.2` | `tpl` function support in `affinity` value added. `topologySpreadConstraints` support added. |
51-
| `1.0.3` | `priorityClassName` support added. Error is corrected on using value `useDefaultAffinityRule == true`. Now, the release name is used in condition with `app.kubernetes.io/instance`. `affinity` and `topologySpreadConstraints` support added for Elasticsearch. |
51+
| `1.0.3` | `priorityClassName` support added. Error is corrected on using value `useDefaultAffinityRule == true`. Now, the release name is used in condition with `app.kubernetes.io/instance`. `affinity` and `topologySpreadConstraints` support added for Elasticsearch. Implementation of `extraConfigMaps` added. |
5252

5353
{{ template "chart.valuesSection" . }}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{{ range .Values.extraConfigMaps }}
2+
---
3+
# /*
4+
# * Copyright (c) 2023 Software AG, Darmstadt, Germany and/or its licensors
5+
# *
6+
# * SPDX-License-Identifier: Apache-2.0
7+
# *
8+
# * Licensed under the Apache License, Version 2.0 (the "License");
9+
# * you may not use this file except in compliance with the License.
10+
# * You may obtain a copy of the License at
11+
# *
12+
# * http://www.apache.org/licenses/LICENSE-2.0
13+
# *
14+
# * Unless required by applicable law or agreed to in writing, software
15+
# * distributed under the License is distributed on an "AS IS" BASIS,
16+
# * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
# * See the License for the specific language governing permissions and
18+
# * limitations under the License.
19+
# *
20+
# */
21+
apiVersion: v1
22+
kind: ConfigMap
23+
metadata:
24+
name: {{ .name }}
25+
labels:
26+
{{- include "common.labels.standard" $ | nindent 4 }}
27+
{{- with $.Values.extraLabels }}
28+
{{ toYaml . | nindent 4 }}
29+
{{- end }}
30+
{{- if .binaryData }}
31+
binaryData:
32+
{{- range $key, $val := .binaryData }}
33+
{{ $key }}: {{ $val | b64enc }}
34+
{{- end }}
35+
{{- else }}
36+
data:
37+
{{- range $key, $val := .data }}
38+
{{ $key }}: |-
39+
{{- if kindIs "string" $val }}
40+
{{ tpl $val $ | nindent 4 }}
41+
{{- else }}
42+
{{ toYaml $val | nindent 4 }}
43+
{{- end }}
44+
{{- end }}
45+
{{- end }}
46+
{{- end }}

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. |
52+
| `1.0.4` | `priorityClassName` support added. Implementation of `extraConfigMaps` 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. |
52+
| `1.0.4` | `priorityClassName` support added. Implementation of `extraConfigMaps` added. |
5353

5454
{{ template "chart.valuesSection" . }}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{{ range .Values.extraConfigMaps }}
2+
---
3+
# /*
4+
# * Copyright (c) 2023 Software AG, Darmstadt, Germany and/or its licensors
5+
# *
6+
# * SPDX-License-Identifier: Apache-2.0
7+
# *
8+
# * Licensed under the Apache License, Version 2.0 (the "License");
9+
# * you may not use this file except in compliance with the License.
10+
# * You may obtain a copy of the License at
11+
# *
12+
# * http://www.apache.org/licenses/LICENSE-2.0
13+
# *
14+
# * Unless required by applicable law or agreed to in writing, software
15+
# * distributed under the License is distributed on an "AS IS" BASIS,
16+
# * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
# * See the License for the specific language governing permissions and
18+
# * limitations under the License.
19+
# *
20+
# */
21+
apiVersion: v1
22+
kind: ConfigMap
23+
metadata:
24+
name: {{ .name }}
25+
labels:
26+
{{- include "common.labels.standard" $ | nindent 4 }}
27+
{{- with $.Values.extraLabels }}
28+
{{ toYaml . | nindent 4 }}
29+
{{- end }}
30+
{{- if .binaryData }}
31+
binaryData:
32+
{{- range $key, $val := .binaryData }}
33+
{{ $key }}: {{ $val | b64enc }}
34+
{{- end }}
35+
{{- else }}
36+
data:
37+
{{- range $key, $val := .data }}
38+
{{ $key }}: |-
39+
{{- if kindIs "string" $val }}
40+
{{ tpl $val $ | nindent 4 }}
41+
{{- else }}
42+
{{ toYaml $val | nindent 4 }}
43+
{{- end }}
44+
{{- end }}
45+
{{- end }}
46+
{{- end }}

0 commit comments

Comments
 (0)