Skip to content

Commit d48239c

Browse files
antznette1ntkathole
authored andcommitted
Fix helm metrics annotation with empty podAnnotations
Signed-off-by: antznette1 <ochiezeanthonette@gmail.com>
1 parent 4fa06b1 commit d48239c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

infra/charts/feast-feature-server/templates/deployment.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ spec:
1111
{{- include "feast-feature-server.selectorLabels" . | nindent 6 }}
1212
template:
1313
metadata:
14-
{{- with .Values.podAnnotations }}
14+
{{- if or .Values.podAnnotations .Values.metrics.enabled }}
1515
annotations:
16+
{{- with .Values.podAnnotations }}
1617
{{- toYaml . | nindent 8 }}
18+
{{- end }}
1719
{{- if $.Values.metrics.enabled }}
1820
instrumentation.opentelemetry.io/inject-python: "true"
1921
{{- end }}

0 commit comments

Comments
 (0)