generated: run refactor
This commit is contained in:
@@ -141,7 +141,7 @@ func svcByName(name string, port int) *v1.Service {
|
||||
// NewSVCByName creates a service by name.
|
||||
func NewSVCByName(c clientset.Interface, ns, name string) error {
|
||||
const testPort = 9376
|
||||
_, err := c.CoreV1().Services(ns).Create(context.TODO(), svcByName(name, testPort))
|
||||
_, err := c.CoreV1().Services(ns).Create(context.TODO(), svcByName(name, testPort), metav1.CreateOptions{})
|
||||
return err
|
||||
}
|
||||
|
||||
@@ -154,7 +154,7 @@ func NewRCByName(c clientset.Interface, ns, name string, replicas int32, gracePe
|
||||
}
|
||||
|
||||
return c.CoreV1().ReplicationControllers(ns).Create(context.TODO(), rcByNamePort(
|
||||
name, replicas, framework.ServeHostnameImage, containerArgs, 9376, v1.ProtocolTCP, map[string]string{}, gracePeriod))
|
||||
name, replicas, framework.ServeHostnameImage, containerArgs, 9376, v1.ProtocolTCP, map[string]string{}, gracePeriod), metav1.CreateOptions{})
|
||||
}
|
||||
|
||||
// RestartNodes restarts specific nodes.
|
||||
|
Reference in New Issue
Block a user