Remove unused util CreatePods

And rename CreatePodsWithControllerRef to simply CreatePods
This commit is contained in:
Aldo Culquicondor
2021-05-20 20:27:21 +00:00
parent f52ab3845d
commit d8aad7944c
7 changed files with 21 additions and 50 deletions

View File

@@ -241,10 +241,10 @@ func newFakePodControl() *fakePodControl {
}
}
func (f *fakePodControl) CreatePodsWithControllerRef(namespace string, template *v1.PodTemplateSpec, object runtime.Object, controllerRef *metav1.OwnerReference) error {
func (f *fakePodControl) CreatePods(namespace string, template *v1.PodTemplateSpec, object runtime.Object, controllerRef *metav1.OwnerReference) error {
f.Lock()
defer f.Unlock()
if err := f.FakePodControl.CreatePodsWithControllerRef(namespace, template, object, controllerRef); err != nil {
if err := f.FakePodControl.CreatePods(namespace, template, object, controllerRef); err != nil {
return fmt.Errorf("failed to create pod for DaemonSet")
}