Skip to content

Commit

Permalink
feat: allow changing the default revisionHistoryLimit
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Berreis <[email protected]>
  • Loading branch information
tberreis committed Aug 2, 2023
1 parent cafec10 commit 45d4c8e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deploy/helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ metadata:
{{- include "trivy-operator.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.operator.replicas }}
{{- if .Values.operator.revisionHistoryLimit }}
revisionHistoryLimit: {{ .Values.operator.revisionHistoryLimit }}
{{- end }}
strategy:
type: Recreate
selector:
Expand Down
3 changes: 3 additions & 0 deletions deploy/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ operator:
# -- replicas the number of replicas of the operator's pod
replicas: 1

# -- number of old history to retain to allow rollback (if not set, default Kubernetes value is set to 10)
# revisionHistoryLimit: 1

# -- additional labels for the operator pod
podLabels: {}

Expand Down

0 comments on commit 45d4c8e

Please sign in to comment.