Skip to content

Commit bb94082

Browse files
committed
feat(tpl): upd tpl func
1 parent fab6df2 commit bb94082

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

charts/wiremock/README.md

+1-1
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

+3-3
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

+4-4
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

+1-1
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)