Skip to content

Commit

Permalink
Update GRPC/H2C conformance test (#932)
Browse files Browse the repository at this point in the history
As part of the Gateway API work backend protocols can be
hinted using a Service's `appProtocol` attribute.

This sets the attribute on the h2c/grpc test

See the GEP: https://gateway-api.sigs.k8s.io/geps/gep-1911/
  • Loading branch information
dprotaso authored Feb 22, 2024
1 parent 556d751 commit 1fbbbf9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/conformance/ingress/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -555,9 +555,10 @@ func CreateGRPCService(ctx context.Context, t *testing.T, clients *test.Clients,
Spec: corev1.ServiceSpec{
Type: "ClusterIP",
Ports: []corev1.ServicePort{{
Name: networking.ServicePortNameH2C,
Port: int32(port),
TargetPort: intstr.FromInt(containerPort),
Name: networking.ServicePortNameH2C,
Port: int32(port),
TargetPort: intstr.FromInt(containerPort),
AppProtocol: ptr.String("kubernetes.io/h2c"),
}},
Selector: map[string]string{
"test-pod": name,
Expand Down

0 comments on commit 1fbbbf9

Please sign in to comment.