Skip to content

Commit 33d0f9f

Browse files
authored
Merge branch 'main' into default-port
Signed-off-by: Ali <[email protected]>
2 parents 8a46a23 + 2040d92 commit 33d0f9f

File tree

12 files changed

+81
-18
lines changed

12 files changed

+81
-18
lines changed

charts/grafana/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
3-
version: 9.2.0
3+
version: 9.2.1
44
appVersion: 12.0.0-security-01
55
kubeVersion: "^1.8.0-0"
66
description: The leading tool for querying and visualizing time series and metrics.

charts/grafana/ci/with-sidecars-envvaluefrom-values.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,21 @@ extraObjects:
1414
var2: "dmFsdWUy"
1515

1616
sidecar:
17+
alerts:
18+
enabled: true
19+
envValueFrom:
20+
VAR1:
21+
configMapKeyRef:
22+
name: '{{ include "grafana.fullname" . }}-test'
23+
key: var1
24+
VAR2:
25+
secretKeyRef:
26+
name: '{{ include "grafana.fullname" . }}-test'
27+
key: var2
28+
VAR3:
29+
fieldRef:
30+
apiVersion: v1
31+
fieldPath: metadata.namespace
1732
dashboards:
1833
enabled: true
1934
envValueFrom:

charts/grafana/templates/_pod.tpl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,11 @@ initContainers:
120120
- name: "{{ $key }}"
121121
value: "{{ $value }}"
122122
{{- end }}
123+
{{- range $key, $value := .Values.sidecar.alerts.envValueFrom }}
124+
- name: {{ $key | quote }}
125+
valueFrom:
126+
{{- tpl (toYaml $value) $ | nindent 10 }}
127+
{{- end }}
123128
{{- if .Values.sidecar.alerts.ignoreAlreadyProcessed }}
124129
- name: IGNORE_ALREADY_PROCESSED
125130
value: "true"

charts/grafana/values.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -987,6 +987,19 @@ sidecar:
987987
enabled: false
988988
# Additional environment variables for the alerts sidecar
989989
env: {}
990+
## "valueFrom" environment variable references that will be added to deployment pods. Name is templated.
991+
## ref: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.19/#envvarsource-v1-core
992+
## Renders in container spec as:
993+
## env:
994+
## ...
995+
## - name: <key>
996+
## valueFrom:
997+
## <value rendered as YAML>
998+
envValueFrom: {}
999+
# ENV_NAME:
1000+
# configMapKeyRef:
1001+
# name: configmap-name
1002+
# key: value_key
9901003
# Do not reprocess already processed unchanged resources on k8s API reconnect.
9911004
# ignoreAlreadyProcessed: true
9921005
# label that the configmaps with alert are marked with (can be templated)

charts/tempo-distributed/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ The memcached default args are removed and should be provided manually. The sett
483483
| externalConfigSecretName | string | `"{{ include \"tempo.resourceName\" (dict \"ctx\" . \"component\" \"config\") }}"` | Name of the Secret or ConfigMap that contains the configuration (used for naming even if config is internal). |
484484
| externalConfigVersion | string | `"0"` | When 'useExternalConfig' is true, then changing 'externalConfigVersion' triggers restart of services - otherwise changes to the configuration cause a restart. |
485485
| externalRuntimeConfigName | string | `"{{ include \"tempo.resourceName\" (dict \"ctx\" . \"component\" \"runtime\") }}"` | Name of the Secret or ConfigMap that contains the runtime configuration (used for naming even if config is internal). |
486-
| extraObjects | list | `[]` | Create extra manifests via values. |
486+
| extraObjects | list | `[]` | extraObjects could be utilized to add dynamic manifests via values |
487487
| fullnameOverride | string | `""` | |
488488
| gateway.affinity | string | Hard node and soft zone anti-affinity | Affinity for gateway pods. Passed through `tpl` and, thus, to be configured as string |
489489
| gateway.annotations | object | `{}` | Annotations for gateway deployment |
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
{{ range .Values.extraObjects }}
22
---
3-
{{ tpl (toYaml .) $ }}
4-
{{ end }}
3+
{{- if typeIs "string" . }}
4+
{{ tpl . $ }}
5+
{{ else }}
6+
{{ tpl (. | toYaml) $ }}
7+
{{- end }}
8+
{{ end }}

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ metadata:
1616
spec:
1717
minReadySeconds: {{ .Values.metricsGenerator.minReadySeconds }}
1818
replicas: {{ .Values.metricsGenerator.replicas }}
19-
revisionHistoryLimit: {{ .Values.tempo.revisionHistoryLimit }}
2019
podManagementPolicy: Parallel
2120
updateStrategy:
2221
rollingUpdate:

charts/tempo-distributed/values.yaml

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2542,14 +2542,28 @@ enterpriseGateway:
25422542
hosts:
25432543
- gateway.get.example.com
25442544

2545-
# -- Create extra manifests via values.
2545+
# -- extraObjects could be utilized to add dynamic manifests via values
25462546
extraObjects: []
2547-
# - apiVersion: "kubernetes-client.io/v1"
2548-
# kind: ExternalSecret
2549-
# metadata:
2550-
# name: tempo-secrets
2551-
# spec:
2552-
# backendType: aws
2553-
# data:
2554-
# - key: secret-access-key
2555-
# name: awssm-secret
2547+
# Examples:
2548+
# extraObjects:
2549+
# - apiVersion: kubernetes-client.io/v1
2550+
# kind: ExternalSecret
2551+
# metadata:
2552+
# name: tempo-secrets-{{ .Release.Name }}
2553+
# spec:
2554+
# backendType: aws
2555+
# data:
2556+
# - key: secret-access-key
2557+
# name: awssm-secret
2558+
# Alternatively, you can use strings, which lets you use additional templating features:
2559+
# extraObjects:
2560+
# - |
2561+
# apiVersion: kubernetes-client.io/v1
2562+
# kind: ExternalSecret
2563+
# metadata:
2564+
# name: tempo-secrets-{{ .Release.Name }}
2565+
# spec:
2566+
# backendType: aws
2567+
# data:
2568+
# - key: secret-access-key
2569+
# name: {{ include "some-other-template" }}

charts/tempo-vulture/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-vulture
33
description: Grafana Tempo Vulture - A tool to monitor Tempo performance.
44
type: application
5-
version: 0.7.1
5+
version: 0.8.0
66
appVersion: 2.6.1
77
engine: gotpl
88
home: https://grafana.com/docs/tempo/latest/

charts/tempo-vulture/README.md

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

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

55
Grafana Tempo Vulture - A tool to monitor Tempo performance.
66

@@ -71,9 +71,11 @@ tempoAddress:
7171
| podMonitor.namespace | string | `nil` | Alternative namespace for PodMonitor resources |
7272
| podMonitor.namespaceSelector | object | `{}` | Namespace selector for PodMonitor resources |
7373
| podMonitor.scrapeTimeout | string | `nil` | PodMonitor scrape timeout in Go duration format (e.g. 15s) |
74+
| podSecurityContext | object | `{}` | podSecurityContext holds pod-level security attributes and common container settings |
7475
| replicas | int | `1` | Number of replicas of Tempo Vulture |
7576
| resources | object | `{}` | Resource requests and limits for the vulture |
7677
| revisionHistoryLimit | int | `10` | The number of old ReplicaSets to retain to allow rollback |
78+
| securityContext | object | `{}` | SecurityContext holds container-level security attributes and common container settings |
7779
| serviceAccount.annotations | object | `{}` | Annotations for the service account |
7880
| serviceAccount.create | bool | `true` | Specifies whether a ServiceAccount should be created |
7981
| serviceAccount.imagePullSecrets | list | `[]` | Image pull secrets for the service account |

0 commit comments

Comments
 (0)