From e52a60e64e4e3dd303b13e0ecaaf662c2caf2037 Mon Sep 17 00:00:00 2001 From: Juri Malinovski Date: Sat, 17 Jan 2026 15:35:01 +0200 Subject: [PATCH] helm: disable default resources, fix poddisruptionbudget condition (#1539) Signed-off-by: Juri Malinovski Co-authored-by: houseme --- helm/rustfs/templates/poddisruptionbudget.yaml | 2 +- helm/rustfs/values.yaml | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/helm/rustfs/templates/poddisruptionbudget.yaml b/helm/rustfs/templates/poddisruptionbudget.yaml index 5b9e1195f..085c25717 100644 --- a/helm/rustfs/templates/poddisruptionbudget.yaml +++ b/helm/rustfs/templates/poddisruptionbudget.yaml @@ -13,7 +13,7 @@ spec: {{- if .Values.pdb.minAvailable }} minAvailable: {{ .Values.pdb.minAvailable }} {{- end }} - {{- if or .Values.pdb.maxUnavailable (not .Values.pdb.minAvailable) }} + {{- if and .Values.pdb.maxUnavailable (not .Values.pdb.minAvailable) }} maxUnavailable: {{ .Values.pdb.maxUnavailable }} {{- end }} selector: diff --git a/helm/rustfs/values.yaml b/helm/rustfs/values.yaml index eb772251f..e0e5a165a 100644 --- a/helm/rustfs/values.yaml +++ b/helm/rustfs/values.yaml @@ -144,17 +144,17 @@ gatewayApi: name: "" namespace: "" -resources: +resources: {} # 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 # resources, such as Minikube. If you do want to specify resources, uncomment the following # lines, adjust them as necessary, and remove the curly braces after 'resources:'. - limits: - cpu: 200m - memory: 512Mi - requests: - cpu: 100m - memory: 128Mi + # limits: + # cpu: 200m + # memory: 512Mi + # requests: + # cpu: 100m + # memory: 128Mi # This is to setup the liveness and readiness probes more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/ livenessProbe: