From c2299a601d2d743d1a148d9646c13bc8c6a6388d Mon Sep 17 00:00:00 2001 From: Jan <55805868+Jaydee94@users.noreply.github.com> Date: Fri, 6 Dec 2024 12:55:36 +0100 Subject: [PATCH] fix: explicitly set resourceFieldRed.divisor In the helm chart the divisor is not set and kubernetes mutates the Deployments to "0" which is the same as "1". Signed-off-by: Jan <55805868+Jaydee94@users.noreply.github.com> --- helm/sealed-secrets/templates/deployment.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/helm/sealed-secrets/templates/deployment.yaml b/helm/sealed-secrets/templates/deployment.yaml index 75e19395b..2cb80108d 100644 --- a/helm/sealed-secrets/templates/deployment.yaml +++ b/helm/sealed-secrets/templates/deployment.yaml @@ -158,12 +158,14 @@ spec: valueFrom: resourceFieldRef: resource: limits.cpu + divisor: "1" {{- end }} {{- if (.Values.resources.limits).memory }} - name: GOMEMLIMIT valueFrom: resourceFieldRef: resource: limits.memory + divisor: "1" {{- end }} ports: - name: http