Skip to content

Commit

Permalink
set app protocol in test service
Browse files Browse the repository at this point in the history
  • Loading branch information
KauzClay committed Jan 10, 2024
1 parent 3b20489 commit 7e9e4c7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/testing/functional.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,10 @@ func WithExternalName(name string) K8sServiceOption {
return func(svc *corev1.Service) {
svc.Spec.ExternalName = name
svc.Spec.Ports = []corev1.ServicePort{{
Name: networking.ServicePortNameH2C,
Port: int32(80),
TargetPort: intstr.FromInt(80),
Name: networking.ServicePortNameH2C,
AppProtocol: &networking.AppProtocolH2C,
Port: int32(80),
TargetPort: intstr.FromInt(80),
}}
}
}
Expand Down

0 comments on commit 7e9e4c7

Please sign in to comment.