From 28b58b842f1a59212ba919f862e2a030c41a6368 Mon Sep 17 00:00:00 2001 From: Reto Lehmann Date: Tue, 24 Sep 2024 22:21:02 +0200 Subject: [PATCH] Use istio.sidecar.inject label instead of annotation (#3096) --- test/crd.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/crd.go b/test/crd.go index eb7c0e0b3d..941ec7c21e 100644 --- a/test/crd.go +++ b/test/crd.go @@ -74,9 +74,9 @@ func CoreV1ObjectReference(kind, apiversion, name string) *corev1.ObjectReferenc func NginxPod(namespace string) *corev1.Pod { return &corev1.Pod{ ObjectMeta: metav1.ObjectMeta{ - Name: nginxName, - Namespace: namespace, - Annotations: map[string]string{"sidecar.istio.io/inject": "true"}, + Name: nginxName, + Namespace: namespace, + Labels: map[string]string{"sidecar.istio.io/inject": "true"}, }, Spec: corev1.PodSpec{ Containers: []corev1.Container{