Skip to content

Commit 097a7fc

Browse files
Merge pull request #3490 from xogoodnow/global-storage-class
[tempo-distributed] Added global storage class
2 parents aaf464d + 6fc9728 commit 097a7fc

File tree

5 files changed

+11
-8
lines changed

5 files changed

+11
-8
lines changed

charts/tempo-distributed/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: tempo-distributed
33
description: Grafana Tempo in MicroService mode
44
type: application
5-
version: 1.28.0
5+
version: 1.28.1
66
appVersion: 2.6.0
77
engine: gotpl
88
home: https://grafana.com/docs/tempo/latest/

charts/tempo-distributed/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# tempo-distributed
22

3-
![Version: 1.28.0](https://img.shields.io/badge/Version-1.28.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.6.0](https://img.shields.io/badge/AppVersion-2.6.0-informational?style=flat-square)
3+
![Version: 1.28.1](https://img.shields.io/badge/Version-1.28.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.6.0](https://img.shields.io/badge/AppVersion-2.6.0-informational?style=flat-square)
44

55
Grafana Tempo in MicroService mode
66

@@ -515,6 +515,7 @@ The memcached default args are removed and should be provided manually. The sett
515515
| global.image.pullSecrets | list | `[]` | Optional list of imagePullSecrets for all images, excluding enterprise. Names of existing secrets with private container registry credentials. Ref: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod Example: pullSecrets: [ my-dockerconfigjson-secret ] |
516516
| global.image.registry | string | `"docker.io"` | Overrides the Docker registry globally for all images, excluding enterprise. |
517517
| global.priorityClassName | string | `nil` | Overrides the priorityClassName for all pods |
518+
| global.storageClass | string | `nil` | Global storage class to be used for persisted components |
518519
| global_overrides | object | `{"per_tenant_override_config":"/runtime-config/overrides.yaml"}` | The standard overrides configuration section. This can include a `defaults` object for applying to all tenants (not to be confused with the `global` property of the same name, which overrides `max_byte_per_trace` for all tenants). For an example on how to enable the metrics generator using the `global_overrides` object, see the 'Activate metrics generator' section below. Refer to [Standard overrides](https://grafana.com/docs/tempo/latest/configuration/#standard-overrides) for more details. |
519520
| ingester.affinity | string | Soft node and soft zone anti-affinity | Affinity for ingester pods. Passed through `tpl` and, thus, to be configured as string |
520521
| ingester.annotations | object | `{}` | Annotations for the ingester StatefulSet |

charts/tempo-distributed/templates/ingester/statefulset-ingester.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{{- $dict := dict "ctx" . "component" "ingester" "memberlist" true -}}
22
{{- $zonesMap := include "ingester.zoneAwareReplicationMap" $dict | fromYaml -}}
3+
{{- $storageClass := .Values.ingester.persistence.storageClass | default .Values.global.storageClass }}
4+
{{- if eq $storageClass "-" }}{{- $storageClass = "" }}{{- end }}
35
{{- range $zoneName, $rolloutZone := $zonesMap -}}
46
{{- with $ -}}
57
{{- $_ := set $dict "rolloutZoneName" $zoneName -}}
@@ -193,9 +195,7 @@ spec:
193195
spec:
194196
accessModes:
195197
- ReadWriteOnce
196-
{{- with .Values.ingester.persistence.storageClass }}
197-
storageClassName: {{ if (eq "-" .) }}""{{ else }}{{ . }}{{ end }}
198-
{{- end }}
198+
storageClassName: {{ if $storageClass }}{{ $storageClass }}{{ else }}{{- "" }}{{ end }}
199199
resources:
200200
requests:
201201
storage: {{ .Values.ingester.persistence.size | quote }}

charts/tempo-distributed/templates/metrics-generator/statefulset-metrics-generator.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{{- if and (.Values.metricsGenerator.enabled) (eq .Values.metricsGenerator.kind "StatefulSet") }}
22
{{ $dict := dict "ctx" . "component" "metrics-generator" "memberlist" true }}
3+
{{- $storageClass := .Values.metricsGenerator.persistence.storageClass | default .Values.global.storageClass }}
4+
{{- if eq $storageClass "-" }}{{- $storageClass = "" }}{{- end }}
35
apiVersion: apps/v1
46
kind: StatefulSet
57
metadata:
@@ -161,9 +163,7 @@ spec:
161163
spec:
162164
accessModes:
163165
- ReadWriteOnce
164-
{{- with .Values.metricsGenerator.persistence.storageClass }}
165-
storageClassName: {{ if (eq "-" .) }}""{{ else }}{{ . }}{{ end }}
166-
{{- end }}
166+
storageClassName: {{ if $storageClass }}{{ $storageClass }}{{ else }}{{- "" }}{{ end }}
167167
resources:
168168
requests:
169169
storage: {{ .Values.metricsGenerator.persistence.size | quote }}

charts/tempo-distributed/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ global:
1919
# -- Common environment variables to add to all pods directly managed by this chart.
2020
# scope: admin-api, compactor, distributor, enterprise-federation-frontend, gateway, ingester, memcached, metrics-generator, querier, query-frontend, tokengen
2121
extraEnv: []
22+
# -- Global storage class to be used for persisted components
23+
storageClass: null
2224
fullnameOverride: ''
2325
# fullnameOverride: tempo
2426

0 commit comments

Comments
 (0)