Remove unnecessary clientset arg from initPausePod

Signed-off-by: Aldo Culquicondor <acondor@google.com>
This commit is contained in:
Aldo Culquicondor
2020-05-14 11:47:12 -04:00
parent 438debfb72
commit 35b9ab1227
6 changed files with 66 additions and 66 deletions

View File

@@ -209,7 +209,7 @@ type pausePodConfig struct {
// initPausePod initializes a pod API object from the given config. It is used
// mainly in pod creation process.
func initPausePod(cs clientset.Interface, conf *pausePodConfig) *v1.Pod {
func initPausePod(conf *pausePodConfig) *v1.Pod {
pod := &v1.Pod{
ObjectMeta: metav1.ObjectMeta{
Name: conf.Name,
@@ -265,7 +265,7 @@ func createPausePodWithResource(cs clientset.Interface, podName string,
},
}
}
return createPausePod(cs, initPausePod(cs, &conf))
return createPausePod(cs, initPausePod(&conf))
}
// runPausePod creates a pod with "Pause" image and the given config and waits