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

@@ -996,7 +996,7 @@ func (dsc *DaemonSetsController) syncNodes(ds *apps.DaemonSet, podsToDelete, nod
podTemplate.Spec.Affinity = util.ReplaceDaemonSetPodNodeNameNodeAffinity(
podTemplate.Spec.Affinity, nodesNeedingDaemonPods[ix])
err := dsc.podControl.CreatePodsWithControllerRef(ds.Namespace, podTemplate,
err := dsc.podControl.CreatePods(ds.Namespace, podTemplate,
ds, metav1.NewControllerRef(ds, controllerKind))
if err != nil {