Skip to content

Commit

Permalink
feat: add additional health check configs
Browse files Browse the repository at this point in the history
  • Loading branch information
lvlcn-t committed Jan 11, 2024
1 parent 3f1e7c4 commit 1dd9e69
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions chart/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ data:
checks:
{{- if .Values.runtimeConfig.health}}
health:
interval: {{ .Values.runtimeConfig.health.interval | default 1 }}
timeout: {{ .Values.runtimeConfig.health.interval | default 3 }}
retry:
count: {{ .Values.runtimeConfig.health.retry.count | default 3 }}
delay: {{ .Values.runtimeConfig.health.retry.delay | default 1 }}
targets:
{{- with .Values.runtimeConfig.health.targets }}
{{- toYaml . | nindent 10 }}
Expand Down
6 changes: 5 additions & 1 deletion chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ startupConfig: {}
# loaderType: http | file
# sparrowName: the-sparrow.com


# -- target manager configuration of the Sparrow (part of the startup)
targetManagerConfig: {}
# checkInterval: 300s
Expand All @@ -128,6 +127,11 @@ targetManagerConfig: {}
# see: https://github.com/caas-team/sparrow#runtime
runtimeConfig:
health:
interval: 20
timeout: 10
retry:
count: 3
delay: 1
targets:
- "https://www.example.com/"
- "https://www.google.com/"
Expand Down

0 comments on commit 1dd9e69

Please sign in to comment.