From e030530aabe36bb01503cee1cc64b159d8819797 Mon Sep 17 00:00:00 2001 From: Cristian Chiru Date: Wed, 3 Sep 2025 10:34:39 +0300 Subject: [PATCH] Fix volume annotations in volume-servicemonitor.yaml (#7193) * Update volume annotations in servicemonitor.yaml * Idiomatic annotations handling in volume-servicemonitor.yaml --- .../seaweedfs/templates/volume/volume-servicemonitor.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/k8s/charts/seaweedfs/templates/volume/volume-servicemonitor.yaml b/k8s/charts/seaweedfs/templates/volume/volume-servicemonitor.yaml index dd8a9f9d7..ac82eb573 100644 --- a/k8s/charts/seaweedfs/templates/volume/volume-servicemonitor.yaml +++ b/k8s/charts/seaweedfs/templates/volume/volume-servicemonitor.yaml @@ -21,9 +21,9 @@ metadata: {{- with $.Values.global.monitoring.additionalLabels }} {{- toYaml . | nindent 4 }} {{- end }} -{{- if .Values.volume.annotations }} +{{- with $volume.annotations }} annotations: - {{- toYaml .Values.volume.annotations | nindent 4 }} + {{- toYaml . | nindent 4 }} {{- end }} spec: endpoints: