From 63f2d238fffe65495d39140226e74c41c5f6b491 Mon Sep 17 00:00:00 2001 From: "Bruno S. Brasil" Date: Wed, 4 Sep 2024 12:27:47 +0000 Subject: [PATCH] bugfix: service.annotations did not find expected key --- charts/apisix/templates/service-gateway.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/apisix/templates/service-gateway.yaml b/charts/apisix/templates/service-gateway.yaml index 7797435a..4fc90005 100644 --- a/charts/apisix/templates/service-gateway.yaml +++ b/charts/apisix/templates/service-gateway.yaml @@ -20,9 +20,9 @@ metadata: name: {{ include "apisix.fullname" . }}-gateway namespace: {{ .Release.Namespace }} annotations: - {{- range $key, $value := .Values.service.annotations }} - {{ $key }}: {{ $value | quote }} - {{- end }} + {{- with .Values.service.annotations }} + {{- toYaml . | nindent 4 }} + {{- end }} labels: {{- include "apisix.labels" . | nindent 4 }} app.kubernetes.io/service: apisix-gateway