Commit 4dd40d64 authored by Geoff Simmons's avatar Geoff Simmons

viking-test-app chart supports custom VCL.

parent 725e4bda
{{ if .Values.acls -}} {{ if or .Values.acls .Values.vcl -}}
{{ if empty .Values.vikingAdmSvc -}} {{ if empty .Values.vikingAdmSvc -}}
{{ fail "Viking admin Service must be specified" -}} {{ fail "Viking admin Service must be specified" -}}
{{ end -}} {{ end -}}
...@@ -18,4 +18,8 @@ spec: ...@@ -18,4 +18,8 @@ spec:
acl: acl:
{{ toYaml .Values.acls | nindent 4 }} {{ toYaml .Values.acls | nindent 4 }}
{{- end }} {{- end }}
{{- if .Values.vcl }}
vcl: |
{{ .Values.vcl | nindent 4 }}
{{- end }}
{{- end }} {{- end }}
...@@ -40,3 +40,6 @@ vikingAdmSvc: "" ...@@ -40,3 +40,6 @@ vikingAdmSvc: ""
# ACL elements for VarnishConfig # ACL elements for VarnishConfig
acls: [] acls: []
# If non-empty, include as-is as custom VCL.
vcl: ""
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment