mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-10 05:30:26 +00:00
Rename Service.ContainerPort to TargetPort in v1b3
Fix all callers and examples. Part of multi-port service cleanup.
This commit is contained in:
@@ -197,9 +197,9 @@ var _ = Describe("Services", func() {
|
||||
Name: serviceName,
|
||||
},
|
||||
Spec: api.ServiceSpec{
|
||||
Port: 80,
|
||||
Selector: labels,
|
||||
ContainerPort: util.NewIntOrStringFromInt(80),
|
||||
Port: 80,
|
||||
Selector: labels,
|
||||
TargetPort: util.NewIntOrStringFromInt(80),
|
||||
},
|
||||
}
|
||||
_, err := c.Services(ns).Create(service)
|
||||
@@ -257,7 +257,7 @@ var _ = Describe("Services", func() {
|
||||
Spec: api.ServiceSpec{
|
||||
Port: 80,
|
||||
Selector: labels,
|
||||
ContainerPort: util.NewIntOrStringFromInt(80),
|
||||
TargetPort: util.NewIntOrStringFromInt(80),
|
||||
CreateExternalLoadBalancer: true,
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user