Skip to content

Commit c92fdb4

Browse files
committed
fix: Add missing attribute for GOMEMLIMIT field reference
Resource field references that do not define a default 'divisor' attribute will default to "0"; however, GitOps tools like ArgoCD will attempt to delete the attribute in a continuous loop. This fix sets a default divisor for the GOMEMLIMIT field reference. Related issues: - kubernetes/kubernetes#128865 Signed-off-by: Chris Coutinho <[email protected]>
1 parent 3597342 commit c92fdb4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

charts/grafana/templates/_pod.tpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1200,6 +1200,7 @@ containers:
12001200
- name: GOMEMLIMIT
12011201
valueFrom:
12021202
resourceFieldRef:
1203+
divisor: "1"
12031204
resource: limits.memory
12041205
{{- end }}
12051206
{{- range $key, $value := .Values.envValueFrom }}
@@ -1450,4 +1451,4 @@ volumes:
14501451
{{- with .Values.extraContainerVolumes }}
14511452
{{- tpl (toYaml .) $root | nindent 2 }}
14521453
{{- end }}
1453-
{{- end }}
1454+
{{- end }}

0 commit comments

Comments
 (0)