mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
Rename a bunch of "Make" functions to "New"
Also rename some to other names that make better reading. There are still a bunch of "make" functions but they do things like assemble a string from parts or build an array of things. It seemed that "make" there seemed fine. "New" is for "constructors".
This commit is contained in:
@@ -59,7 +59,7 @@ func (st *schedulerTester) expectFailure(pod api.Pod) {
|
||||
}
|
||||
}
|
||||
|
||||
func makePod(host string, hostPorts ...int) api.Pod {
|
||||
func newPod(host string, hostPorts ...int) api.Pod {
|
||||
networkPorts := []api.Port{}
|
||||
for _, port := range hostPorts {
|
||||
networkPorts = append(networkPorts, api.Port{HostPort: port})
|
||||
|
||||
Reference in New Issue
Block a user