mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 12:07:47 +00:00
Set permit timeout to 10s in test
Signed-off-by: kerthcet <kerthcet@gmail.com>
This commit is contained in:
parent
8cf93c8d83
commit
a7ef06da87
@ -1185,6 +1185,7 @@ func (f fakePermitPlugin) Name() string {
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
podWaitingReason = "podWaiting"
|
podWaitingReason = "podWaiting"
|
||||||
|
permitTimeout = 10 * time.Second
|
||||||
)
|
)
|
||||||
|
|
||||||
func (f fakePermitPlugin) Permit(ctx context.Context, state *framework.CycleState, p *v1.Pod, nodeName string) (*framework.Status, time.Duration) {
|
func (f fakePermitPlugin) Permit(ctx context.Context, state *framework.CycleState, p *v1.Pod, nodeName string) (*framework.Status, time.Duration) {
|
||||||
@ -1193,7 +1194,7 @@ func (f fakePermitPlugin) Permit(ctx context.Context, state *framework.CycleStat
|
|||||||
f.eventRecorder.Eventf(p, nil, v1.EventTypeWarning, podWaitingReason, "", "")
|
f.eventRecorder.Eventf(p, nil, v1.EventTypeWarning, podWaitingReason, "", "")
|
||||||
}()
|
}()
|
||||||
|
|
||||||
return framework.NewStatus(framework.Wait), 100 * time.Second
|
return framework.NewStatus(framework.Wait), permitTimeout
|
||||||
}
|
}
|
||||||
|
|
||||||
var _ framework.PermitPlugin = &fakePermitPlugin{}
|
var _ framework.PermitPlugin = &fakePermitPlugin{}
|
||||||
|
Loading…
Reference in New Issue
Block a user