- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for NewPodControllerRefManager (0.27 sec)
-
pkg/controller/controller_ref_manager_test.go
} var tests = []test{ func() test { controller := v1.ReplicationController{} controller.Namespace = metav1.NamespaceDefault return test{ name: "Claim pods with correct label", manager: NewPodControllerRefManager(&FakePodControl{}, &controller, productionLabelSelector, controllerKind, func(ctx context.Context) error { return nil }),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 10 17:19:26 UTC 2021 - 10.6K bytes - Viewed (0) -
pkg/controller/controller_ref_manager.go
} type PodControllerRefManager struct { BaseControllerRefManager controllerKind schema.GroupVersionKind podControl PodControlInterface finalizers []string } // NewPodControllerRefManager returns a PodControllerRefManager that exposes // methods to manage the controllerRef of pods. // // The CanAdopt() function can be used to perform a potentially expensive check
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jul 12 12:57:29 UTC 2023 - 21.5K bytes - Viewed (0) -
pkg/controller/statefulset/stateful_set.go
return nil, err } filter := func(pod *v1.Pod) bool { // Only claim if it matches our StatefulSet name. Otherwise release/ignore. return isMemberOf(set, pod) } cm := controller.NewPodControllerRefManager(ssc.podControl, set, selector, controllerKind, ssc.canAdoptFunc(ctx, set)) return cm.ClaimPods(ctx, pods, filter) } // If any adoptions are attempted, we should first recheck for deletion with
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 05 19:06:41 UTC 2024 - 18.5K bytes - Viewed (0) -
pkg/controller/replicaset/replica_set.go
} if fresh.UID != rs.UID { return nil, fmt.Errorf("original %v %v/%v is gone: got uid %v, wanted %v", rsc.Kind, rs.Namespace, rs.Name, fresh.UID, rs.UID) } return fresh, nil }) cm := controller.NewPodControllerRefManager(rsc.podControl, rs, selector, rsc.GroupVersionKind, canAdoptFunc) return cm.ClaimPods(ctx, filteredPods) } // slowStartBatch tries to call the provided function a total of 'count' times,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 33.2K bytes - Viewed (0) -
pkg/controller/daemon/daemon_controller.go
} return fresh, nil }) // Use ControllerRefManager to adopt/orphan as needed. cm := controller.NewPodControllerRefManager(dsc.podControl, ds, selector, controllerKind, dsNotDeleted) return cm.ClaimPods(ctx, pods) } // getNodesToDaemonPods returns a map from nodes to daemon pods (corresponding to ds) created for the nodes.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 51.3K bytes - Viewed (0) -
pkg/controller/job/job_controller.go
} if fresh.UID != j.UID { return nil, fmt.Errorf("original Job %v/%v is gone: got uid %v, wanted %v", j.Namespace, j.Name, fresh.UID, j.UID) } return fresh, nil }) cm := controller.NewPodControllerRefManager(jm.podControl, j, selector, controllerKind, canAdoptFunc, batch.JobTrackingFinalizer) // When adopting Pods, this operation adds an ownerRef and finalizers. pods, err = cm.ClaimPods(ctx, pods) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jun 10 23:56:37 UTC 2024 - 77.6K bytes - Viewed (0)