mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
use exist const to replace TCP str
Signed-off-by: HaoJie Liu <liuhaojie@beyondcent.com>
This commit is contained in:
parent
aeb410fe1f
commit
677f0bae39
@ -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),
|
||||||
},
|
},
|
||||||
|
@ -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)),
|
||||||
},
|
},
|
||||||
|
@ -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)),
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user