File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,13 +20,16 @@ spec:
2020 deployment_type : web
2121 template :
2222 metadata :
23- {{- with .Values.podAnnotations }}
23+ {{- $podAnnotations := merge (deepCopy (default dict .Values.podAnnotations)) (default dict .Values.instrumentation.annotations) }}
24+ {{- with $podAnnotations }}
2425 annotations :
2526 {{- toYaml . | nindent 8 }}
2627 {{- end }}
28+ {{- $baseSelectorLabels := (include "py-app.selectorLabels" . | fromYaml) }}
29+ {{- $_ := set $baseSelectorLabels "deployment_type" "web" }}
30+ {{- $mergedLabels := merge $baseSelectorLabels (default dict .Values.instrumentation.labels) }}
2731 labels :
28- {{- include "py-app.selectorLabels" . | nindent 8 }}
29- deployment_type : web
32+ {{- toYaml $mergedLabels | nindent 8 }}
3033 spec :
3134 {{- with .Values.imagePullSecrets }}
3235 imagePullSecrets :
Original file line number Diff line number Diff line change @@ -13,6 +13,11 @@ replicaCount: 1
1313# it will be put directly in containers.
1414env : {}
1515
16+ # annotations and/or labels for zero-code instrumentation support (OpenTelemetry Collector and Grafana Beyla)
17+ instrumentation :
18+ annotations : {}
19+ labels : {}
20+
1621# Definition of migrator jobs.
1722#
1823# This should
You can’t perform that action at this time.
0 commit comments