@@ -4,19 +4,16 @@ templates:
4
4
# primary template files
5
5
- deployments.yaml
6
6
7
- # Not all jobs have resources yet
8
- - jobs.yaml
7
+ # No jobs resources yet
9
8
10
9
# included templates must also be listed
11
10
- configmaps_overrides.yaml
12
11
- configmaps_packs.yaml
13
12
- configmaps_rbac.yaml
14
13
- configmaps_st2-conf.yaml
15
- - configmaps_st2-urls.yaml
16
14
- configmaps_st2web.yaml
17
15
- secrets_datastore_crypto_key.yaml
18
16
- secrets_ssh.yaml
19
- - secrets_st2apikeys.yaml
20
17
- secrets_st2auth.yaml
21
18
- secrets_st2chatops.yaml
22
19
@@ -42,44 +39,6 @@ tests:
42
39
- isNotEmpty :
43
40
path : spec.template.spec.containers[0].resources.requests.cpu
44
41
45
- - it : st2canary Job has default resources
46
- template : jobs.yaml
47
- set :
48
- st2 :
49
- packs :
50
- sensors : [] # ensure only 1 sensor
51
- images : []
52
- volumes : &volumes_enabled
53
- enabled : true
54
- packs :
55
- nfs :
56
- server : " 10.12.34.56"
57
- path : /var/nfsshare/packs
58
- virtualenvs :
59
- nfs :
60
- server : " 10.12.34.56"
61
- path : /var/nfsshare/virtualenvs
62
- configs :
63
- nfs :
64
- server : " 10.12.34.56"
65
- path : /var/nfsshare/configs
66
- configs : {} # has one core.yaml config file by default (dicts get merged)
67
- # Only the st2canary job has resources, so disable the other jobs to narrow the test.
68
- jobs :
69
- skip :
70
- - apply_rbac_definitions
71
- - apikey_load
72
- - key_load
73
- - register_content
74
- asserts :
75
- - hasDocuments :
76
- count : 1
77
-
78
- - isNull :
79
- path : spec.template.spec.containers[0].resources.limits
80
- - isNull :
81
- path : spec.template.spec.containers[0].resources.requests
82
-
83
42
- it : Deployments accept custom resources (except st2client)
84
43
template : deployments.yaml
85
44
set :
@@ -167,27 +126,4 @@ tests:
167
126
- equal : *assert_custom_requests
168
127
documentIndex : 13
169
128
170
- - it : st2canary Job accepts custom resources
171
- template : jobs.yaml
172
- set :
173
- st2 :
174
- packs :
175
- sensors : [] # ensure only 1 sensor
176
- images : []
177
- volumes : *volumes_enabled
178
- configs : {} # has one core.yaml config file by default (dicts get merged)
179
- # Only the st2canary job has resources, so disable the other jobs to narrow the test.
180
- jobs :
181
- resources : *custom_resources
182
- skip :
183
- - apply_rbac_definitions
184
- - apikey_load
185
- - key_load
186
- - register_content
187
- asserts :
188
- - hasDocuments :
189
- count : 1
190
-
191
- - equal :
192
- path : spec.template.spec.containers[0].resources.requests
193
- value : *custom_resources_requests
129
+ # Jobs do not have default resources defined yet.
0 commit comments