Skip to content

Commit

Permalink
[kube-prometheus-stack] allow setting GOGC env configure (#4058)
Browse files Browse the repository at this point in the history
* add GOGC env setting

Signed-off-by: dongjiang1989 <dongjiang1989@126.com>

* fix lint checker

Signed-off-by: dongjiang1989 <dongjiang1989@126.com>

* fix value quote

Signed-off-by: dongjiang1989 <dongjiang1989@126.com>

* Update charts/kube-prometheus-stack/values.yaml

Signed-off-by: dongjiang <dongjiang1989@126.com>

* update chart version

Signed-off-by: dongjiang1989 <dongjiang1989@126.com>

* fix shellcheck lint

Signed-off-by: dongjiang1989 <dongjiang1989@126.com>

---------

Signed-off-by: dongjiang1989 <dongjiang1989@126.com>
Signed-off-by: dongjiang <dongjiang1989@126.com>
  • Loading branch information
dongjiang1989 authored Dec 13, 2023
1 parent f61d899 commit 16219b7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/kube-prometheus-stack/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ name: kube-prometheus-stack
sources:
- https://github.com/prometheus-community/helm-charts
- https://github.com/prometheus-operator/kube-prometheus
version: 55.3.1
version: 55.4.0
appVersion: v0.70.0
kubeVersion: ">=1.19.0-0"
home: https://github.com/prometheus-operator/kube-prometheus
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@ spec:
- containerPort: 8080
name: http
{{- end }}
env:
{{- range $key, $value := .Values.prometheusOperator.env }}
- name: {{ $key }}
value: {{ $value | quote }}
{{- end }}
resources:
{{ toYaml .Values.prometheusOperator.resources | indent 12 }}
securityContext:
Expand Down
6 changes: 6 additions & 0 deletions charts/kube-prometheus-stack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2538,6 +2538,12 @@ prometheusOperator:
# cpu: 100m
# memory: 100Mi

## Operator Environment
## env:
## VARIABLE: value
env:
GOGC: "30"

# Required for use in managed kubernetes clusters (such as AWS EKS) with custom CNI (such as calico),
# because control-plane managed by AWS cannot communicate with pods' IP CIDR and admission webhooks are not working
##
Expand Down

0 comments on commit 16219b7

Please sign in to comment.