Skip to content

Commit

Permalink
use tpl in backendService
Browse files Browse the repository at this point in the history
Allow to specify backendService via the tpl function, when used as an
HELM dependency
  • Loading branch information
jfcoz committed Feb 6, 2024
1 parent 544dca5 commit 18040ae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ spec:
{{- else }}
- -backend-watch=false
{{- end }}
- -backend-service={{ .Values.cache.backendService }}
- -backend-service={{ tpl .Values.cache.backendService . }}
- -backend-namespace={{ .Values.cache.backendServiceNamespace | default "$(NAMESPACE)" }}
- -varnish-secret-file=/etc/varnish/k8s-secret/secret
- -varnish-vcl-template=/etc/varnish/tmpl/default.vcl.tmpl
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ spec:
- -backend-watch=false
{{- end }}
- -backend-namespace={{ .Values.cache.backendServiceNamespace | default "$(NAMESPACE)" }}
- -backend-service={{ .Values.cache.backendService }}
- -backend-service={{ tpl .Values.cache.backendService . }}
- -varnish-secret-file=/etc/varnish/k8s-secret/secret
- -varnish-vcl-template=/etc/varnish/tmpl/default.vcl.tmpl
- -varnish-storage={{ .Values.cache.varnishStorage }},{{ .Values.cache.storageSize }}
Expand Down
2 changes: 1 addition & 1 deletion chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ configmap:
cache:
# name of frontend service
# frontendService: kube-httpcache-headless
# name of backend service
# name of backend service (this value is evaluated as a template)
backendService: backend-service
# name of backend service namespace
# backendServiceNamespace: backend-service-namespace
Expand Down

0 comments on commit 18040ae

Please sign in to comment.