diff --git a/chart/Chart.yaml b/chart/Chart.yaml index 49b39be..3457ca2 100644 --- a/chart/Chart.yaml +++ b/chart/Chart.yaml @@ -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: diff --git a/chart/templates/deployment.yaml b/chart/templates/deployment.yaml index 6eebd47..8518cce 100644 --- a/chart/templates/deployment.yaml +++ b/chart/templates/deployment.yaml @@ -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 diff --git a/chart/templates/statefulset.yaml b/chart/templates/statefulset.yaml index a851ff5..d62c5f7 100644 --- a/chart/templates/statefulset.yaml +++ b/chart/templates/statefulset.yaml @@ -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 }} diff --git a/chart/values.yaml b/chart/values.yaml index 7f3feaf..119df2b 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -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