-
Notifications
You must be signed in to change notification settings - Fork 3
/
priority-class-mocks.rego
49 lines (47 loc) · 1.1 KB
/
priority-class-mocks.rego
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package k8spin.mocks
create_client_pod_with_invalid_priority_class = {
"kind": "AdmissionReview",
"apiVersion": "admission.k8s.io/v1beta1",
"request": {
"uid": "b50bd9d2-3118-11e9-9ea6-42010a9c0062",
"kind": {
"group": "",
"version": "v1",
"kind": "Pod",
},
"resource": {
"group": "",
"version": "v1",
"resource": "pods",
},
"namespace": "angelbarrerasanchez-gmail-com-aa",
"operation": "CREATE",
"object": {
"metadata": {"namespace": "angelbarrerasanchez-gmail-com-aa"},
"spec": {"priorityClassName": "high-priority"},
},
},
}
create_client_pod_with_valid_priority_class = {
"kind": "AdmissionReview",
"apiVersion": "admission.k8s.io/v1beta1",
"request": {
"uid": "b50bd9d2-3118-11e9-9ea6-42010a9c0062",
"kind": {
"group": "",
"version": "v1",
"kind": "Pod",
},
"resource": {
"group": "",
"version": "v1",
"resource": "pods",
},
"namespace": "angelbarrerasanchez-gmail-com-aa",
"operation": "CREATE",
"object": {
"metadata": {"namespace": "angelbarrerasanchez-gmail-com-aa"},
"spec": {"priorityClassName": "low-priority"},
},
},
}