File tree Expand file tree Collapse file tree 12 files changed +197
-174
lines changed
test/e2e-kuttl/quota-forest Expand file tree Collapse file tree 12 files changed +197
-174
lines changed Original file line number Diff line number Diff line change 1
- # Verify AppWrapper was dispatched and pod was created
2
- apiVersion : mcad.ibm.com/v1beta1
3
- kind : AppWrapper
1
+ # Verify delay step
2
+ apiVersion : batch/v1
3
+ kind : Job
4
4
metadata :
5
- name : job3-1replica
5
+ name : job-delay-step
6
6
namespace : test
7
- labels :
8
- quota_context : " gold"
9
- quota_service : " service-root"
10
7
status :
11
- state : Running
12
- ---
13
- apiVersion : v1
14
- kind : Pod
15
- metadata :
16
- name : job3-1replica-0
17
- namespace : test
8
+ succeeded : 1
Original file line number Diff line number Diff line change 1
- apiVersion : mcad.ibm.com/v1beta1
2
- kind : AppWrapper
1
+ apiVersion : batch/v1
2
+ kind : Job
3
3
metadata :
4
- name : job3-1replica
4
+ name : job-delay-step
5
5
namespace : test
6
- labels :
7
- quota_context : " gold"
8
- quota_service : " service-root"
9
6
spec :
10
- service :
11
- spec : {}
12
- resources :
13
- metadata : {}
14
- Items : []
15
- GenericItems :
16
- - metadata : {}
17
- replicas : 1
18
- generictemplate :
19
- apiVersion : apps/v1 # for versions before 1.9.0 use apps/v1beta2
20
- kind : StatefulSet
21
- metadata :
22
- name : job3-1replica
23
- namespace : test
24
- labels :
25
- app : job3-1replica
26
- spec :
27
- selector :
28
- matchLabels :
29
- app : job3-1replica
30
- replicas : 1
31
- template :
32
- metadata :
33
- labels :
34
- app : job3-1replica
35
- size : " 1"
36
- spec :
37
- containers :
38
- - name : job3-1replica
39
- image : registry.access.redhat.com/ubi8/ubi:latest
40
- command :
41
- - /bin/sh
42
- - -c
43
- - while true; do sleep 10; done
44
- resources :
45
- requests :
46
- cpu : " 0.6"
47
- memory : " 95Mi"
48
- limits :
49
- cpu : " 0.6"
50
- memory : " 95Mi"
7
+ template :
8
+ spec :
9
+ containers :
10
+ - name : job-delay-step
11
+ image : ubuntu:latest
12
+ command : [ "/bin/bash", "-c", "--" ]
13
+ args : [ "sleep 10;" ]
14
+ restartPolicy : Never
15
+ backoffLimit : 4
Original file line number Diff line number Diff line change 1
- # Verify that quota management is enabled by checking the queuing is happening (e.g. no available quota for quota ids provided in AW)
1
+ # Verify AppWrapper was dispatched and pod was created
2
2
apiVersion : mcad.ibm.com/v1beta1
3
3
kind : AppWrapper
4
4
metadata :
5
- name : job4-10replica
5
+ name : job-gold-lo-pri-1replica
6
6
namespace : test
7
7
labels :
8
- quota_context : " context-root2 "
9
- quota_service : " service-root2 "
8
+ quota_context : " gold "
9
+ quota_service : " service-root "
10
10
status :
11
- state : Pending
11
+ state : Running
12
+ ---
13
+ apiVersion : v1
14
+ kind : Pod
15
+ metadata :
16
+ name : job-gold-lo-pri-1replica-0
17
+ namespace : test
Original file line number Diff line number Diff line change 1
1
apiVersion : mcad.ibm.com/v1beta1
2
2
kind : AppWrapper
3
3
metadata :
4
- name : job4-10replica
4
+ name : job-gold-lo-pri-1replica
5
5
namespace : test
6
6
labels :
7
- quota_context : " context-root2 "
8
- quota_service : " service-root2 "
7
+ quota_context : " gold "
8
+ quota_service : " service-root "
9
9
spec :
10
10
service :
11
11
spec : {}
12
12
resources :
13
13
metadata : {}
14
+ Items : []
14
15
GenericItems :
15
16
- metadata : {}
16
17
replicas : 1
17
18
generictemplate :
18
19
apiVersion : apps/v1 # for versions before 1.9.0 use apps/v1beta2
19
20
kind : StatefulSet
20
21
metadata :
21
- name : job4-10replica
22
+ name : job-gold-lo-pri-1replica
22
23
namespace : test
23
24
labels :
24
- app : job4-10replica
25
+ app : job-gold-lo-pri-1replica
25
26
spec :
26
27
selector :
27
28
matchLabels :
28
- app : job4-10replica
29
- replicas : 10
29
+ app : job-gold-lo-pri-1replica
30
+ replicas : 1
30
31
template :
31
32
metadata :
32
33
labels :
33
- app : job4-10replica
34
+ app : job-gold-lo-pri-1replica
34
35
size : " 1"
35
36
spec :
36
37
containers :
37
- - name : job4-10replica
38
+ - name : job-gold-lo-pri-1replica
38
39
image : registry.access.redhat.com/ubi8/ubi:latest
39
40
command :
40
41
- /bin/sh
41
42
- -c
42
43
- while true; do sleep 10; done
43
44
resources :
44
45
requests :
45
- cpu : " 0.1 "
46
+ cpu : " 0.6 "
46
47
memory : " 95Mi"
47
48
limits :
48
- cpu : " 0.1 "
49
+ cpu : " 0.6 "
49
50
memory : " 95Mi"
Original file line number Diff line number Diff line change 1
- # Verify that quota management preempted lower priority job
1
+ # Verify that quota management is enabled by checking the queuing is happening (e.g. no available quota for quota ids provided in AW)
2
2
apiVersion : mcad.ibm.com/v1beta1
3
3
kind : AppWrapper
4
4
metadata :
5
- name : job5-1replica
6
- namespace : test
7
- labels :
8
- quota_context : " gold"
9
- quota_service : " service-root"
10
- status :
11
- state : Running
12
- ---
13
- apiVersion : v1
14
- kind : Pod
15
- metadata :
16
- name : job5-1replica-0
17
- namespace : test
18
- ---
19
- apiVersion : mcad.ibm.com/v1beta1
20
- kind : AppWrapper
21
- metadata :
22
- name : job4-10replica
5
+ name : job-bad-quota-id-10replica
23
6
namespace : test
24
7
labels :
25
8
quota_context : " context-root2"
26
9
quota_service : " service-root2"
27
10
status :
28
11
state : Pending
29
- ---
30
- apiVersion : mcad.ibm.com/v1beta1
31
- kind : AppWrapper
32
- metadata :
33
- name : job3-1replica
34
- namespace : test
35
- labels :
36
- quota_context : " gold"
37
- quota_service : " service-root"
38
- status :
39
- state : Pending
Original file line number Diff line number Diff line change 1
1
apiVersion : mcad.ibm.com/v1beta1
2
2
kind : AppWrapper
3
3
metadata :
4
- name : job5-1replica
4
+ name : job-bad-quota-id-10replica
5
5
namespace : test
6
6
labels :
7
- quota_context : " gold "
8
- quota_service : " service-root "
7
+ quota_context : " context-root2 "
8
+ quota_service : " service-root2 "
9
9
spec :
10
10
service :
11
11
spec : {}
12
- priority : 1000
13
12
resources :
14
13
metadata : {}
15
14
GenericItems :
@@ -19,32 +18,32 @@ spec:
19
18
apiVersion : apps/v1 # for versions before 1.9.0 use apps/v1beta2
20
19
kind : StatefulSet
21
20
metadata :
22
- name : job5-1replica
21
+ name : job-bad-quota-id-10replica
23
22
namespace : test
24
23
labels :
25
- app : job5-1replica
24
+ app : job-bad-quota-id-10replica
26
25
spec :
27
26
selector :
28
27
matchLabels :
29
- app : job5-1replica
30
- replicas : 1
28
+ app : job-bad-quota-id-10replica
29
+ replicas : 10
31
30
template :
32
31
metadata :
33
32
labels :
34
- app : job5-1replica
33
+ app : job-bad-quota-id-10replica
35
34
size : " 1"
36
35
spec :
37
36
containers :
38
- - name : job5-1replica
37
+ - name : job-bad-quota-id-10replica
39
38
image : registry.access.redhat.com/ubi8/ubi:latest
40
39
command :
41
40
- /bin/sh
42
41
- -c
43
42
- while true; do sleep 10; done
44
43
resources :
45
44
requests :
46
- cpu : " 0.6 "
45
+ cpu : " 0.1 "
47
46
memory : " 95Mi"
48
47
limits :
49
- cpu : " 0.6 "
48
+ cpu : " 0.1 "
50
49
memory : " 95Mi"
Original file line number Diff line number Diff line change 1
- # Verify that quota management is enabled using different quota ids
1
+ # Verify that quota management preempted lower priority job
2
2
apiVersion : mcad.ibm.com/v1beta1
3
3
kind : AppWrapper
4
4
metadata :
5
- name : job6-1replica
6
- namespace : test
7
- labels :
8
- quota_context : " bronze"
9
- quota_service : " service-root"
10
- status :
11
- state : Running
12
- ---
13
- apiVersion : v1
14
- kind : Pod
15
- metadata :
16
- name : job6-1replica-0
17
- namespace : test
18
- ---
19
- apiVersion : mcad.ibm.com/v1beta1
20
- kind : AppWrapper
21
- metadata :
22
- name : job5-1replica
5
+ name : job-gold-high-pri-1replica
23
6
namespace : test
24
7
labels :
25
8
quota_context : " gold"
@@ -30,13 +13,13 @@ status:
30
13
apiVersion : v1
31
14
kind : Pod
32
15
metadata :
33
- name : job5 -1replica-0
16
+ name : job-gold-high-pri -1replica-0
34
17
namespace : test
35
18
---
36
19
apiVersion : mcad.ibm.com/v1beta1
37
20
kind : AppWrapper
38
21
metadata :
39
- name : job4 -10replica
22
+ name : job-bad-quota-id -10replica
40
23
namespace : test
41
24
labels :
42
25
quota_context : " context-root2"
@@ -47,7 +30,7 @@ status:
47
30
apiVersion : mcad.ibm.com/v1beta1
48
31
kind : AppWrapper
49
32
metadata :
50
- name : job3 -1replica
33
+ name : job-gold-lo-pri -1replica
51
34
namespace : test
52
35
labels :
53
36
quota_context : " gold"
Original file line number Diff line number Diff line change 1
1
apiVersion : mcad.ibm.com/v1beta1
2
2
kind : AppWrapper
3
3
metadata :
4
- name : job6 -1replica
4
+ name : job-gold-high-pri -1replica
5
5
namespace : test
6
6
labels :
7
- quota_context : " bronze "
7
+ quota_context : " gold "
8
8
quota_service : " service-root"
9
9
spec :
10
10
service :
@@ -19,32 +19,32 @@ spec:
19
19
apiVersion : apps/v1 # for versions before 1.9.0 use apps/v1beta2
20
20
kind : StatefulSet
21
21
metadata :
22
- name : job6 -1replica
22
+ name : job-gold-high-pri -1replica
23
23
namespace : test
24
24
labels :
25
- app : job6 -1replica
25
+ app : job-gold-high-pri -1replica
26
26
spec :
27
27
selector :
28
28
matchLabels :
29
- app : job6 -1replica
29
+ app : job-gold-high-pri -1replica
30
30
replicas : 1
31
31
template :
32
32
metadata :
33
33
labels :
34
- app : job6 -1replica
34
+ app : job-gold-high-pri -1replica
35
35
size : " 1"
36
36
spec :
37
37
containers :
38
- - name : job6 -1replica
38
+ - name : job-gold-high-pri -1replica
39
39
image : registry.access.redhat.com/ubi8/ubi:latest
40
40
command :
41
41
- /bin/sh
42
42
- -c
43
43
- while true; do sleep 10; done
44
44
resources :
45
45
requests :
46
- cpu : " 0.4 "
46
+ cpu : " 0.6 "
47
47
memory : " 95Mi"
48
48
limits :
49
- cpu : " 0.4 "
49
+ cpu : " 0.6 "
50
50
memory : " 95Mi"
You can’t perform that action at this time.
0 commit comments