fix: fix failed test when updating volcano
parent
471ac832f8
commit
1a176c398e
File diff suppressed because it is too large
Load Diff
|
@ -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))
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue