Skip to content

Commit

Permalink
feat(helm): make shutdown duration configurable
Browse files Browse the repository at this point in the history
Signed-off-by: Clément Nussbaumer <[email protected]>
  • Loading branch information
clementnuss committed Dec 14, 2023
1 parent 6e82de2 commit a518f56
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions helm/kubenurse/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ spec:
value: {{ .Values.check_neighbourhood | quote }}
- name: KUBENURSE_CHECK_INTERVAL
value: {{ .Values.check_interval }}
- name: KUBENURSE_SHUTDOWN_DURATION
value: {{ .Values.shutdown_duration }}
- name: KUBENURSE_USE_TLS
value: {{ .Values.use_tls | quote }}
{{- if .Values.cert_file }}
Expand Down
8 changes: 5 additions & 3 deletions helm/kubenurse/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ daemonset:
containerSecurityContext: {}
containerResources: {}
containerImagePullPolicy: IfNotPresent
tolerations:
tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io/master
operator: Equal
Expand All @@ -21,7 +21,7 @@ daemonset:
volumes: []
priorityClassName: ""

serviceMonitor:
serviceMonitor:
enabled: false
labels: {}

Expand All @@ -33,7 +33,7 @@ insecure: true
service_url: ""
# KUBENURSE_ALLOW_UNSCHEDULABLE
allow_unschedulable: false
# KUBENURSE_NEIGHBOUR_FILTER
# KUBENURSE_NEIGHBOUR_FILTER
neighbour_filter: app.kubernetes.io/name=kubenurse
# KUBENURSE_EXTRA_CA
extra_ca: ""
Expand All @@ -49,6 +49,8 @@ check_api_me_service: true
check_neighbourhood: true
# KUBENURSE_CHECK_INTERVAL
check_interval: 5s
# KUBENURSE_SHUTDOWN_DURATION
shutdown_duration: 5s
# KUBENURSE_USE_TLS
use_tls: false
# KUBENURSE_CERT_FILE
Expand Down

0 comments on commit a518f56

Please sign in to comment.