Skip to content

Commit e6ead0e

Browse files
committed
Updated auto-injection criteria for different meshes
Signed-off-by: dhruv0000 <patel.4@iitj.ac.in>
1 parent a9e71a9 commit e6ead0e

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

smi-conformance/grpc/handlers.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,12 @@ func (s *Service) RunTest(ctx context.Context, req *conformance.Request) (*confo
4242

4343
config = linkerdConfig
4444
switch req.Mesh.Type {
45-
case smp.ServiceMesh_APP_MESH:
45+
case smp.ServiceMesh_LINKERD:
4646
config = linkerdConfig
4747
req.Mesh.Annotations["linkerd.io/inject"] = "enabled"
48+
case smp.ServiceMesh_APP_MESH:
49+
config = linkerdConfig
50+
req.Mesh.Labels["appmesh.k8s.aws/sidecarInjectorWebhook"] = "enabled"
4851
case smp.ServiceMesh_MAESH:
4952
config = maeshConfig
5053
case smp.ServiceMesh_ISTIO:
@@ -53,6 +56,10 @@ func (s *Service) RunTest(ctx context.Context, req *conformance.Request) (*confo
5356
case smp.ServiceMesh_OPEN_SERVICE_MESH:
5457
config = osmConfig
5558
req.Mesh.Labels["openservicemesh.io/monitored-by"] = "osm"
59+
case smp.ServiceMesh_KUMA:
60+
req.Mesh.Annotations["kuma.io/sidecar-injection"] = "enabled"
61+
case smp.ServiceMesh_NGINX_SERVICE_MESH:
62+
req.Mesh.Annotations["njector.nsm.nginx.com/auto-inject"] = "true"
5663

5764
}
5865

0 commit comments

Comments
 (0)