Skip to content

Commit

Permalink
feat(vector): Add lifecycle
Browse files Browse the repository at this point in the history
Signed-off-by: tombokombo <[email protected]>
  • Loading branch information
tombokombo committed Jul 19, 2022
1 parent b4d42b4 commit 2dc5602
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/vector/templates/_pod.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ containers:
{{- with .Values.resources }}
resources:
{{- toYaml . | nindent 6 }}
{{- end }}
{{- with .Values.lifecycle }}
lifecycle:
{{- toYaml . | nindent 6 }}
{{- end }}
volumeMounts:
- name: data
Expand Down
8 changes: 8 additions & 0 deletions charts/vector/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,14 @@ resources: {}
# cpu: 200m
# memory: 256Mi

# lifecycle -- Set vector lifecycle hooks
lifecycle: {}
# preStop:
# exec:
# command:
# - /bin/sleep
# - "10"

# updateStrategy -- Customize the updateStrategy used to replace Vector Pods
## Also used for the DeploymentStrategy for Stateless-Aggregators
## Valid options are used depending on the chosen role
Expand Down

0 comments on commit 2dc5602

Please sign in to comment.