Skip to content

Commit

Permalink
fix: explicitly set resourceFieldRef.divisor (#1655)
Browse files Browse the repository at this point in the history
**Description of the change**

In the helm chart the divisor is not set and kubernetes mutates the
Deployments to "0" which is the same as "1".

**Benefits**

When deploying with ArgoCD the application will not be displayed as
"OutOfSync"

**Possible drawbacks**

---

Signed-off-by: Jan <[email protected]>
  • Loading branch information
Jaydee94 authored Jan 16, 2025
1 parent 0ed8f32 commit a78a582
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions helm/sealed-secrets/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a78a582

Please sign in to comment.