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 4, 2024
1 parent 7ddde1c commit 053bda2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions chart/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v2
name: kube-httpcache
description: Varnish on Kubernetes Helm Chart
version: 0.8.0
appVersion: v0.8.0
version: 0.9.0
appVersion: v0.9.0
home: https://varnish-cache.org
icon: https://varnish-cache.org/_static/varnish-bunny.png
sources:
Expand Down
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 @@ -27,7 +27,7 @@ cache:
# name of frontend service
# frontendService: kube-httpcache-headless
# name of backend service
backendService: backend-service
backendService: "{{ .Release.Name }}-backend-service"
# name of backend service namespace
# backendServiceNamespace: backend-service-namespace
# watching for frontend changes is true by default
Expand Down

0 comments on commit 053bda2

Please sign in to comment.