fix: fix failed test when updating volcano

pull/19159/head
锦南路之花 2024-06-16 18:33:21 +02:00
parent 471ac832f8
commit 1a176c398e
3 changed files with 4325 additions and 4960 deletions

File diff suppressed because it is too large Load Diff

View File

@ -899,7 +899,7 @@ func validateVolcanoAddon(ctx context.Context, t *testing.T, profile string) {
wg.Done()
}()
go func() {
if err := kapi.WaitForDeploymentToStabilize(client, volcanoNamespace, "volcano-controller", Minutes(6)); err != nil {
if err := kapi.WaitForDeploymentToStabilize(client, volcanoNamespace, "volcano-controllers", Minutes(6)); err != nil {
t.Errorf("failed waiting for volcano-controller deployment to stabilize: %v", err)
} else {
t.Logf("volcano-controller stabilized in %s", time.Since(start))

View File

@ -5,6 +5,18 @@ metadata:
---
apiVersion: scheduling.volcano.sh/v1beta1
kind: Queue
metadata:
name: test
namespace: my-volcano
spec:
weight: 1
reclaimable: false
capability:
cpu: 2
---
apiVersion: batch.volcano.sh/v1alpha1
kind: Job
metadata:
@ -13,7 +25,7 @@ metadata:
spec:
minAvailable: 1
schedulerName: volcano
queue: default
queue: test
tasks:
- replicas: 1
name: nginx