Skip to content

Commit

Permalink
varnishncsa waits until varnishd is ready (#42)
Browse files Browse the repository at this point in the history
* varnishncsa waits until varnishd is ready

Signed-off-by: Basilio Vera <[email protected]>

* fix "off" default value

Signed-off-by: Basilio Vera <[email protected]>

---------

Signed-off-by: Basilio Vera <[email protected]>
  • Loading branch information
bvis authored Oct 3, 2023
1 parent ff4cd80 commit 24df7d7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: varnish
description: A Varnish Cache Helm chart for Kubernetes
type: application
version: 0.18.5
version: 0.18.6
appVersion: 7.2.1
5 changes: 5 additions & 0 deletions templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,15 @@ spec:
{{- toYaml .Values.logging.securityContext | nindent 12 }}
command:
- varnishncsa
{{- if .Values.logging.customOutputJsonFormat }}
- -j
{{- end }}
{{- if .Values.logging.customOutput }}
- -F
- {{ .Values.logging.customOutput | quote }}
{{- end }}
- -t
- {{ .Values.logging.timeout | quote }}
resources:
{{- toYaml .Values.logging.resources | nindent 12 }}
volumeMounts:
Expand Down
7 changes: 7 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,13 @@ initContainers: []
logging:
enabled: true
customOutput: null
customOutputJsonFormat: false
# Timeout before returning error on initial VSM connection.
# If set the VSM connection is retried every 0.5 seconds for this many seconds.
# If zero the connection is attempted only once and will fail immediately if unsuccessful.
# If set to "off", the connection will not fail, allowing the utility to start and wait indefinetely for the Varnish instance to appear.
# Defaults to "off" in this case.
timeout: "off"
resources: {}
securityContext: {}
# capabilities:
Expand Down

0 comments on commit 24df7d7

Please sign in to comment.