Skip to content

Commit f4d20ab

Browse files
authored
Merge pull request #32 from rliskunov/feat/tpl
Templating additional values
2 parents f0cea81 + 7ea25e7 commit f4d20ab

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

charts/wiremock/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 1.5.0
18+
version: 1.5.1
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

charts/wiremock/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ $ curl -X POST http://127.0.0.1:8080/v1/hello
3939
```
4040

4141
To check the web app when using `holomekc/wiremock`, visit http://127.0.0.1:8080/__admin/webapp on your browser.
42-
42+
4343
# References:
4444

4545
- [WireMock Java Library](https://github.com/tomakehurst/wiremock)

charts/wiremock/templates/deployment.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,15 @@ spec:
8989
{{- end }}
9090
{{- with .Values.nodeSelector }}
9191
nodeSelector:
92-
{{- toYaml . | nindent 8 }}
92+
{{- tpl (toYaml .) $ | nindent 8 }}
9393
{{- end }}
9494
{{- with .Values.affinity }}
9595
affinity:
96-
{{- toYaml . | nindent 8 }}
96+
{{- tpl (toYaml .) $ | nindent 8 }}
9797
{{- end }}
9898
{{- with .Values.tolerations }}
9999
tolerations:
100-
{{- toYaml . | nindent 8 }}
100+
{{- tpl (toYaml .) $ | nindent 8 }}
101101
{{- end }}
102102
volumes:
103103
- name: mappings-data

charts/wiremock/templates/ingress.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ metadata:
2020
{{- include "wiremock.labels" . | nindent 4 }}
2121
{{- with .Values.ingress.annotations }}
2222
annotations:
23-
{{- toYaml . | nindent 4 }}
23+
{{- tpl (toYaml .) $ | nindent 4 }}
2424
{{- end }}
2525
spec:
2626
{{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }}
@@ -31,14 +31,14 @@ spec:
3131
{{- range .Values.ingress.tls }}
3232
- hosts:
3333
{{- range .hosts }}
34-
- {{ . | quote }}
34+
- {{ tpl . $ | quote }}
3535
{{- end }}
36-
secretName: {{ .secretName }}
36+
secretName: {{ tpl .secretName $ }}
3737
{{- end }}
3838
{{- end }}
3939
rules:
4040
{{- range .Values.ingress.hosts }}
41-
- host: {{ .host | quote }}
41+
- host: {{ tpl .host $ | quote }}
4242
http:
4343
paths:
4444
{{- range .paths }}

charts/wiremock/templates/serviceaccount.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ metadata:
77
{{- include "wiremock.labels" . | nindent 4 }}
88
{{- with .Values.serviceAccount.annotations }}
99
annotations:
10-
{{- toYaml . | nindent 4 }}
10+
{{- tpl (toYaml .) $ | nindent 4 }}
1111
{{- end }}
1212
{{- end }}

0 commit comments

Comments
 (0)