Skip to content

Commit

Permalink
Add deployment strategy to helm deployment configs (#10012)
Browse files Browse the repository at this point in the history
  • Loading branch information
EternalDeiwos authored Dec 2, 2024
1 parent f4f0ec5 commit 261f328
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions helm/nessie/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ spec:
selector:
matchLabels:
{{- include "nessie.selectorLabels" . | nindent 6 }}
strategy:
{{- tpl (toYaml .Values.deploymentStrategy) . | nindent 4 }}
template:
metadata:
annotations:
Expand Down
14 changes: 14 additions & 0 deletions helm/nessie/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -842,6 +842,20 @@ ingress:
# - chart-example2.local
# secretName: secret1

# -- Override the strategy for nessie deployment.
# Valid values for type are: RollingUpdate and Recreate.
# If you are using the ROCKSDB version store type then you should use Recreate.
# Max Surge will allow new pods to be created before old ones are culled. Do not enable this when using ROCKSDB
# version store type.
# Max Unavailable will allow old pods to be culled before replacements are created
# See: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
deploymentStrategy:
{}
# type: RollingUpdate
# rollingUpdate:
# maxUnavailable: 0
# maxSurge: 1

# -- Configures the resources requests and limits for nessie pods.
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
Expand Down

0 comments on commit 261f328

Please sign in to comment.