Merge pull request #111269 from HecarimV/fix-22072011

use exist const to replace TCP str
This commit is contained in:
Kubernetes Prow Robot 2022-07-22 09:43:49 -07:00 committed by GitHub
commit c58b2f4a54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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, Selector: serviceLabels,
Ports: []v1.ServicePort{ Ports: []v1.ServicePort{
{ {
Protocol: "TCP", Protocol: v1.ProtocolTCP,
Port: aggregatorServicePort, Port: aggregatorServicePort,
TargetPort: intstr.FromInt(443), TargetPort: intstr.FromInt(443),
}, },

View File

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

View File

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