mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-08 16:30:57 -04:00
Update comments to explain why we delete on all errors in DaemonSet
This commit is contained in:
parent
9a6c7a68f3
commit
1d78c7f2b1
1 changed files with 3 additions and 0 deletions
|
|
@ -1120,6 +1120,9 @@ func (dsc *DaemonSetsController) syncNodes(ctx context.Context, ds *apps.DaemonS
|
|||
go func(ix int) {
|
||||
defer deleteWait.Done()
|
||||
if err := dsc.podControl.DeletePod(ctx, ds.Namespace, podsToDelete[ix], ds); err != nil {
|
||||
// We are cleaning up an expectation that this delete will be observed,
|
||||
// since any failure to delete the pod means that we will never observe
|
||||
// the delete.
|
||||
dsc.expectations.DeletionObserved(logger, dsKey)
|
||||
if !apierrors.IsNotFound(err) {
|
||||
logger.V(2).Info("Failed deletion, decremented expectations for daemon set", "daemonset", klog.KObj(ds))
|
||||
|
|
|
|||
Loading…
Reference in a new issue