From 138990657aa8ccd6b2c26cf3cec5aecbbe026145 Mon Sep 17 00:00:00 2001 From: Matthias Wessendorf Date: Mon, 11 Nov 2024 17:15:44 +0100 Subject: [PATCH] Make annotation val explicit string....... Signed-off-by: Matthias Wessendorf --- test/rekt/resources/broker/broker.yaml | 2 +- test/rekt/resources/broker/broker_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/rekt/resources/broker/broker.yaml b/test/rekt/resources/broker/broker.yaml index ec73900e5bb..ba28e55715d 100644 --- a/test/rekt/resources/broker/broker.yaml +++ b/test/rekt/resources/broker/broker.yaml @@ -24,7 +24,7 @@ metadata: {{ end }} {{ if .annotations }} {{ range $key, $value := .annotations }} - {{ $key }}: {{ $value }} + {{ $key }}: "{{ $value }}" {{ end }} {{ end }} {{ end }} diff --git a/test/rekt/resources/broker/broker_test.go b/test/rekt/resources/broker/broker_test.go index 2b3b7f2e418..bc88aa4ec85 100644 --- a/test/rekt/resources/broker/broker_test.go +++ b/test/rekt/resources/broker/broker_test.go @@ -168,7 +168,7 @@ func ExampleWithAnnotations() { // name: foo // namespace: bar // annotations: - // eventing.knative.dev/foo: bar + // eventing.knative.dev/foo: "bar" // spec: }