const BurstReplicas …
const statusUpdateRetries …
const controllerUIDIndex …
type ReplicaSetController …
func NewReplicaSetController(ctx context.Context, rsInformer appsinformers.ReplicaSetInformer, podInformer coreinformers.PodInformer, kubeClient clientset.Interface, burstReplicas int) *ReplicaSetController { … }
func NewBaseController(logger klog.Logger, rsInformer appsinformers.ReplicaSetInformer, podInformer coreinformers.PodInformer, kubeClient clientset.Interface, burstReplicas int,
gvk schema.GroupVersionKind, metricOwnerName, queueName string, podControl controller.PodControlInterface, eventBroadcaster record.EventBroadcaster) *ReplicaSetController { … }
func (rsc *ReplicaSetController) Run(ctx context.Context, workers int) { … }
func (rsc *ReplicaSetController) getReplicaSetsWithSameController(logger klog.Logger, rs *apps.ReplicaSet) []*apps.ReplicaSet { … }
func (rsc *ReplicaSetController) getPodReplicaSets(pod *v1.Pod) []*apps.ReplicaSet { … }
func (rsc *ReplicaSetController) resolveControllerRef(namespace string, controllerRef *metav1.OwnerReference) *apps.ReplicaSet { … }
func (rsc *ReplicaSetController) enqueueRS(rs *apps.ReplicaSet) { … }
func (rsc *ReplicaSetController) enqueueRSAfter(rs *apps.ReplicaSet, duration time.Duration) { … }
func (rsc *ReplicaSetController) addRS(logger klog.Logger, obj interface{ … }
func (rsc *ReplicaSetController) updateRS(logger klog.Logger, old, cur interface{ … }
func (rsc *ReplicaSetController) deleteRS(logger klog.Logger, obj interface{ … }
func (rsc *ReplicaSetController) addPod(logger klog.Logger, obj interface{ … }
func (rsc *ReplicaSetController) updatePod(logger klog.Logger, old, cur interface{ … }
func (rsc *ReplicaSetController) deletePod(logger klog.Logger, obj interface{ … }
func (rsc *ReplicaSetController) worker(ctx context.Context) { … }
func (rsc *ReplicaSetController) processNextWorkItem(ctx context.Context) bool { … }
func (rsc *ReplicaSetController) manageReplicas(ctx context.Context, filteredPods []*v1.Pod, rs *apps.ReplicaSet) error { … }
func (rsc *ReplicaSetController) syncReplicaSet(ctx context.Context, key string) error { … }
func (rsc *ReplicaSetController) claimPods(ctx context.Context, rs *apps.ReplicaSet, selector labels.Selector, filteredPods []*v1.Pod) ([]*v1.Pod, error) { … }
func slowStartBatch(count int, initialBatchSize int, fn func() error) (int, error) { … }
func (rsc *ReplicaSetController) getIndirectlyRelatedPods(logger klog.Logger, rs *apps.ReplicaSet) ([]*v1.Pod, error) { … }
func getPodsToDelete(filteredPods, relatedPods []*v1.Pod, diff int) []*v1.Pod { … }
func reportSortingDeletionAgeRatioMetric(filteredPods []*v1.Pod, diff int) { … }
func getPodsRankedByRelatedPodsOnSameNode(podsToRank, relatedPods []*v1.Pod) controller.ActivePodsWithRanks { … }
func getPodKeys(pods []*v1.Pod) []string { … }