Skip to content

Commit 2edfa3f

Browse files
Merge branch 'main' into tempo_distributed_configure_empty_tenant_deletion_enabled
Signed-off-by: jacobcrawford <[email protected]>
2 parents 05cee21 + b672274 commit 2edfa3f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+494
-37
lines changed

charts/cloudcost-exporter/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ type: application
55

66
# This is the chart version. This version number should be incremented each time you make changes
77
# to the chart and its templates, including the app version.
8-
version: 1.0.5
8+
version: 1.0.6
99

1010
# This is the version of cloudcost-exporter to be deployed, which should be incremented
1111
# with each release.
12-
appVersion: "0.9.0"
12+
appVersion: "0.10.0"
1313

1414
home: https://github.com/grafana/cloudcost-exporter

charts/cloudcost-exporter/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Cloud Cost Exporter exports cloud provider agnostic cost metrics to Prometheus.
44

5-
![Version: 1.0.5](https://img.shields.io/badge/Version-1.0.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.9.0](https://img.shields.io/badge/AppVersion-0.9.0-informational?style=flat-square)
5+
![Version: 1.0.6](https://img.shields.io/badge/Version-1.0.6-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.10.0](https://img.shields.io/badge/AppVersion-0.10.0-informational?style=flat-square)
66

77
## Installing the Chart
88

charts/grafana-mcp/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: grafana-mcp
3-
version: 0.1.2
3+
version: 0.1.3
44
appVersion: latest
55
kubeVersion: "^1.8.0-0"
66
description: MCP server for Grafana.

charts/grafana-mcp/templates/deployment.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ spec:
101101
env:
102102
- name: GRAFANA_URL
103103
value: {{ .Values.grafana.url | quote }}
104-
- name: GRAFANA_API_KEY
104+
{{- if or .Values.grafana.apiKey .Values.grafana.apiKeySecret.name }}
105+
- name: GRAFANA_SERVICE_ACCOUNT_TOKEN
105106
valueFrom:
106107
secretKeyRef:
107108
{{- if .Values.grafana.apiKey }}
@@ -111,6 +112,7 @@ spec:
111112
name: {{ .Values.grafana.apiKeySecret.name }}
112113
key: {{ .Values.grafana.apiKeySecret.key }}
113114
{{- end }}
115+
{{- end }}
114116
{{- range $key, $value := .Values.env }}
115117
- name: {{ $key | quote }}
116118
value: {{ $value | quote }}

charts/grafana/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
name: grafana
3-
version: 9.3.6
4-
appVersion: 12.1.0
3+
version: 10.0.0
4+
appVersion: 12.1.1
55
kubeVersion: "^1.8.0-0"
66
description: The leading tool for querying and visualizing time series and metrics.
77
home: https://grafana.com

charts/grafana/README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,16 @@ to `global.imageRegistry`. If you were not previously setting `global.image.regi
5353
is required on upgrade. If you were previously setting `global.image.registry`, you will
5454
need to instead set `global.imageRegistry`.
5555

56+
### To 10.0.0
57+
58+
Static alerting resources now support Helm templating. This means that alerting resources loaded from external files (`alerting.*.files`) are now processed by the Helm template engine.
59+
60+
If you already use template expressions intended for Alertmanager (for example, `{{ $labels.instance }}`), these must now be escaped to avoid unintended Helm evaluation. To escape them, wrap the braces with an extra layer like this:
61+
62+
`{{ "{{" }} $labels.instance {{ "}}" }}`
63+
64+
This ensures the expressions are preserved for Alertmanager instead of being rendered by Helm.
65+
5666
## Configuration
5767

5868
| Parameter | Description | Default |
@@ -168,7 +178,7 @@ need to instead set `global.imageRegistry`.
168178
| `lifecycleHooks` | Lifecycle hooks for podStart and preStop [Example](https://kubernetes.io/docs/tasks/configure-pod-container/attach-handler-lifecycle-event/#define-poststart-and-prestop-handlers) | `{}` |
169179
| `sidecar.image.registry` | Sidecar image registry | `quay.io` |
170180
| `sidecar.image.repository` | Sidecar image repository | `kiwigrid/k8s-sidecar` |
171-
| `sidecar.image.tag` | Sidecar image tag | `1.30.0` |
181+
| `sidecar.image.tag` | Sidecar image tag | `1.30.10` |
172182
| `sidecar.image.sha` | Sidecar image sha (optional) | `""` |
173183
| `sidecar.imagePullPolicy` | Sidecar image pull policy | `IfNotPresent` |
174184
| `sidecar.resources` | Sidecar resources | `{}` |
@@ -681,7 +691,7 @@ The two possibilities for static alerting resource provisioning are:
681691
* The format of the files is defined in the [Grafana documentation](https://grafana.com/docs/grafana/next/alerting/set-up/provision-alerting-resources/file-provisioning/) on file provisioning.
682692
* The chart supports importing YAML and JSON files.
683693
* The filename must be unique, otherwise one volume mount will overwrite the other.
684-
* In case of inlining, double curly braces that arise from the Grafana configuration format and are not intended as templates for the chart must be escaped.
694+
* Alerting configurations support Helm templating. Double curly braces that arise from the Grafana configuration format and are not intended as templates for the chart must be escaped.
685695
* The number of total files under `alerting:` is not limited. Each file will end up as a volume mount in the corresponding provisioning folder of the deployed Grafana instance.
686696
* The file size for each import is limited by what the function `.Files.Get` can handle, which suffices for most cases.
687697

charts/grafana/templates/_config.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ grafana.ini: |
5555

5656
{{- range $key, $value := .Values.alerting }}
5757
{{- if (hasKey $value "file") }}
58-
{{ $key }}:
59-
{{- toYaml ( $files.Get $value.file ) | nindent 2 }}
58+
{{ $key }}: |
59+
{{- tpl ($files.Get $value.file) $root | nindent 2 }}
6060
{{- else if (or (hasKey $value "secret") (hasKey $value "secretFile"))}}
6161
{{/* will be stored inside secret generated by "configSecret.yaml"*/}}
6262
{{- else }}

charts/grafana/templates/_pod.tpl

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1196,6 +1196,13 @@ containers:
11961196
value: {{ (get .Values "grafana.ini").paths.plugins }}
11971197
- name: GF_PATHS_PROVISIONING
11981198
value: {{ (get .Values "grafana.ini").paths.provisioning }}
1199+
{{- if (.Values.resources.limits).memory }}
1200+
- name: GOMEMLIMIT
1201+
valueFrom:
1202+
resourceFieldRef:
1203+
divisor: "1"
1204+
resource: limits.memory
1205+
{{- end }}
11991206
{{- range $key, $value := .Values.envValueFrom }}
12001207
- name: {{ $key | quote }}
12011208
valueFrom:
@@ -1444,4 +1451,4 @@ volumes:
14441451
{{- with .Values.extraContainerVolumes }}
14451452
{{- tpl (toYaml .) $root | nindent 2 }}
14461453
{{- end }}
1447-
{{- end }}
1454+
{{- end }}

charts/grafana/templates/statefulset.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ spec:
4444
metadata:
4545
name: storage
4646
spec:
47-
accessModes: {{ .Values.persistence.accessModes }}
47+
accessModes:
48+
{{- range .Values.persistence.accessModes }}
49+
- {{ . | quote }}
50+
{{- end }}
4851
storageClassName: {{ .Values.persistence.storageClassName }}
4952
{{- with .Values.persistence.volumeName }}
5053
volumeName: {{ . | quote }}

charts/grafana/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ envFromSecrets: []
569569
## prefix: prefix
570570
## optional: true
571571

572-
## The names of conifgmaps in the same kubernetes namespace which contain values to be added to the environment
572+
## The names of configmaps in the same kubernetes namespace which contain values to be added to the environment
573573
## Each entry should contain a name key, and can optionally specify whether the configmap must be defined with an optional key.
574574
## Name is templated.
575575
## ref: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#configmapenvsource-v1-core
@@ -959,7 +959,7 @@ sidecar:
959959
# -- The Docker registry
960960
registry: quay.io
961961
repository: kiwigrid/k8s-sidecar
962-
tag: 1.30.3
962+
tag: 1.30.10
963963
sha: ""
964964
imagePullPolicy: IfNotPresent
965965
resources: {}

0 commit comments

Comments
 (0)