Merge pull request #122996 from Huang-Wei/cleanup-dra-postfilter

DRA: always returns Unschedulable in PostFilter
This commit is contained in:
Kubernetes Prow Robot 2024-01-27 08:19:44 -08:00 committed by GitHub
commit c606448922
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -789,7 +789,7 @@ func (pl *dynamicResources) PostFilter(ctx context.Context, cs *framework.CycleS
if _, err := pl.clientset.ResourceV1alpha2().ResourceClaims(claim.Namespace).UpdateStatus(ctx, claim, metav1.UpdateOptions{}); err != nil {
return nil, statusError(logger, err)
}
return nil, nil
return nil, framework.NewStatus(framework.Unschedulable, "deallocation of ResourceClaim completed")
}
}
return nil, framework.NewStatus(framework.Unschedulable, "still not schedulable")

View File

@ -473,6 +473,7 @@ func TestPlugin(t *testing.T) {
Obj()
},
},
status: framework.NewStatus(framework.Unschedulable, `deallocation of ResourceClaim completed`),
},
},
},