DRA: always returns Unschedulable in PostFilter

This commit is contained in:
Wei Huang 2024-01-26 09:44:00 -08:00
parent 7811ba3d4d
commit ceabc4aba8
No known key found for this signature in database
GPG Key ID: 17AFE05D01EA77B2
2 changed files with 2 additions and 1 deletions

View File

@ -806,7 +806,7 @@ func (pl *dynamicResources) PostFilter(ctx context.Context, cs *framework.CycleS
if err := state.updateClaimStatus(ctx, pl.clientset, index, claim); 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

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