use exist const to replace TCP str

Signed-off-by: HaoJie Liu <liuhaojie@beyondcent.com>
This commit is contained in:
HaoJie Liu 2022-07-20 11:19:18 +08:00
parent aeb410fe1f
commit 677f0bae39
No known key found for this signature in database
GPG Key ID: 6CDCB10FAC001536
3 changed files with 3 additions and 3 deletions

View File

@ -409,7 +409,7 @@ func TestSampleAPIServer(f *framework.Framework, aggrclient *aggregatorclient.Cl
Selector: serviceLabels,
Ports: []v1.ServicePort{
{
Protocol: "TCP",
Protocol: v1.ProtocolTCP,
Port: aggregatorServicePort,
TargetPort: intstr.FromInt(443),
},

View File

@ -340,7 +340,7 @@ func deployCustomResourceWebhookAndService(f *framework.Framework, image string,
Selector: serviceLabels,
Ports: []v1.ServicePort{
{
Protocol: "TCP",
Protocol: v1.ProtocolTCP,
Port: servicePort,
TargetPort: intstr.FromInt(int(containerPort)),
},

View File

@ -838,7 +838,7 @@ func deployWebhookAndService(f *framework.Framework, image string, certCtx *cert
Selector: serviceLabels,
Ports: []v1.ServicePort{
{
Protocol: "TCP",
Protocol: v1.ProtocolTCP,
Port: servicePort,
TargetPort: intstr.FromInt(int(containerPort)),
},