Skip to content

Commit

Permalink
Fix admission error
Browse files Browse the repository at this point in the history
Fixed UnexpectedAdmissionError: Allocate failed due to not enough cpus
available to satisfy request: requested=2, available=1, which is unexpected
  • Loading branch information
bart0sh committed Mar 20, 2024
1 parent a309fad commit 2473922
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions test/e2e_node/podresources_test.go
Expand Up @@ -447,12 +447,12 @@ func podresourcesListTests(ctx context.Context, f *framework.Framework, cli kube
cntName: "cnt-00",
resourceName: sd.resourceName,
resourceAmount: 1,
cpuRequest: 2000,
cpuRequest: 1000,
},
{
podName: "pod-02",
cntName: "cnt-00",
cpuRequest: 2000,
cpuRequest: 1000,
},
{
podName: "pod-03",
Expand All @@ -471,12 +471,12 @@ func podresourcesListTests(ctx context.Context, f *framework.Framework, cli kube
{
podName: "pod-01",
cntName: "cnt-00",
cpuRequest: 2000,
cpuRequest: 1000,
},
{
podName: "pod-02",
cntName: "cnt-00",
cpuRequest: 2000,
cpuRequest: 1000,
},
{
podName: "pod-03",
Expand All @@ -503,12 +503,12 @@ func podresourcesListTests(ctx context.Context, f *framework.Framework, cli kube
cntName: "cnt-00",
resourceName: sd.resourceName,
resourceAmount: 1,
cpuRequest: 2000,
cpuRequest: 1000,
},
{
podName: "pod-02",
cntName: "cnt-00",
cpuRequest: 2000,
cpuRequest: 1000,
},
}
} else {
Expand All @@ -520,12 +520,12 @@ func podresourcesListTests(ctx context.Context, f *framework.Framework, cli kube
{
podName: "pod-01",
cntName: "cnt-00",
cpuRequest: 2000,
cpuRequest: 1000,
},
{
podName: "pod-02",
cntName: "cnt-00",
cpuRequest: 2000,
cpuRequest: 1000,
},
}
}
Expand Down Expand Up @@ -791,7 +791,7 @@ func podresourcesGetTests(ctx context.Context, f *framework.Framework, cli kubel
{
podName: "pod-01",
cntName: "cnt-00",
cpuRequest: 2000,
cpuRequest: 1000,
},
}
tpd.createPodsForTest(ctx, f, expected)
Expand All @@ -812,15 +812,15 @@ func podresourcesGetTests(ctx context.Context, f *framework.Framework, cli kubel
{
podName: "pod-01",
cntName: "cnt-00",
cpuRequest: 2000,
cpuRequest: 1000,
initContainers: []initContainerDesc{
{
cntName: "init-00",
cpuRequest: 1000,
},
{
cntName: "restartable-init-01",
cpuRequest: 2000,
cpuRequest: 1000,
restartPolicy: &containerRestartPolicyAlways,
},
},
Expand Down

0 comments on commit 2473922

Please sign in to comment.