Skip to content

Commit

Permalink
Use istio.sidecar.inject label instead of annotation (#3096)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReToCode authored Sep 24, 2024
1 parent aabe552 commit 28b58b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/crd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 28b58b8

Please sign in to comment.