From 39b37833c529bb5f2ec7431f2beffeb7a245c8df Mon Sep 17 00:00:00 2001 From: bodaciousbiscuits <167443179+bodaciousbiscuits@users.noreply.github.com> Date: Sun, 19 May 2024 21:31:19 -0500 Subject: adding the ability to change the default podManagementPolicy for StatefulSets --- script/helm/garage/templates/workload.yaml | 1 + script/helm/garage/values.yaml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/script/helm/garage/templates/workload.yaml b/script/helm/garage/templates/workload.yaml index 340c0054..aba9202b 100644 --- a/script/helm/garage/templates/workload.yaml +++ b/script/helm/garage/templates/workload.yaml @@ -11,6 +11,7 @@ spec: {{- if eq .Values.deployment.kind "StatefulSet" }} replicas: {{ .Values.deployment.replicaCount }} serviceName: {{ include "garage.fullname" . }} + podManagementPolicy: {{ .Values.deployment.podManagementPolicy }} {{- end }} template: metadata: diff --git a/script/helm/garage/values.yaml b/script/helm/garage/values.yaml index 56afa2b2..63164b9b 100644 --- a/script/helm/garage/values.yaml +++ b/script/helm/garage/values.yaml @@ -96,6 +96,8 @@ deployment: kind: StatefulSet # Number of StatefulSet replicas/garage nodes to start replicaCount: 3 + # If using statefulset, allow Parallel or OrderedReady (default) + podManagementPolicy: OrderedReady image: repository: dxflrs/amd64_garage -- cgit v1.2.3