Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ metadata:
{{- toYaml .Values.controller.annotations | nindent 4 }}
{{- end }}
spec:
ttlSecondsAfterFinished : {{ .Values.controller.jobTtlSeconds }}
backoffLimit: 5
template:
metadata:
Expand Down
1 change: 1 addition & 0 deletions chart/templates/hook-upgrade-crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ metadata:
{{- toYaml .Values.controller.annotations | nindent 4 }}
{{- end }}
spec:
ttlSecondsAfterFinished : {{ .Values.hooks.jobTtlSeconds }}
backoffLimit: {{ .Values.hooks.upgradeCRDs.backoffLimit | default 5 }}
template:
metadata:
Expand Down
7 changes: 7 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ controller:
# @type: integer
replicas: 1

# Seconds time-to-live to clean up old the job that has finished execution
jobTtlSeconds: 120

# Configure update strategy for multi-replica deployments.
# Kubernetes supports types Recreate, and RollingUpdate
# ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
Expand Down Expand Up @@ -861,6 +864,10 @@ hooks:
requests:
cpu: 10m
memory: 64Mi

# Seconds time-to-live to clean up old the job that has finished execution
jobTtlSeconds: 120

# Configure the Helm pre-upgrade hook that handles custom resource definition (CRD) upgrades.
upgradeCRDs:
# Set to true to automatically upgrade the CRDs.
Expand Down
Loading