- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for getIndirectlyRelatedPods (0.18 sec)
-
pkg/controller/replicaset/replica_set.go
if len(errCh) > 0 { return successes, <-errCh } remaining -= batchSize } return successes, nil } // getIndirectlyRelatedPods returns all pods that are owned by any ReplicaSet // that is owned by the given ReplicaSet's owner. func (rsc *ReplicaSetController) getIndirectlyRelatedPods(logger klog.Logger, rs *apps.ReplicaSet) ([]*v1.Pod, error) { var relatedPods []*v1.Pod seen := make(map[types.UID]*apps.ReplicaSet)
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/replicaset/replica_set_test.go
for _, pod := range c.pods { informers.Core().V1().Pods().Informer().GetIndexer().Add(pod) manager.addPod(logger, pod) } actualPods, err := manager.getIndirectlyRelatedPods(logger, c.rs) if err != nil { t.Errorf("Unexpected error from getIndirectlyRelatedPods: %v", err) } var actualPodNames []string for _, pod := range actualPods { actualPodNames = append(actualPodNames, pod.Name) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 69.2K bytes - Viewed (0)