Skip to content

Commit 0eab6eb

Browse files
committed
Merged upstream changes.
Signed-off-by: dmatch01 <darroyo@us.ibm.com>
2 parents 07e57df + ce300d9 commit 0eab6eb

File tree

11 files changed

+605
-48
lines changed

11 files changed

+605
-48
lines changed

CONTROLLER_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.29.53
1+
1.29.55

config/crd/bases/mcad.ibm.com_appwrappers.yaml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,29 +253,48 @@ spec:
253253
type: object
254254
type: object
255255
schedulingSpec:
256-
description: SchedSpec specifies the parameters for scheduling.
256+
description: Field 'schedulingSpec' specifies the parameters used for scheduling generic items
257+
wrapped inside AppWrappers. It defines the policy for requeuing jobs based on the number
258+
of running pods.
257259
properties:
258260
minAvailable:
261+
description: Expected number of pods in running and/or completed state. Requeuing is triggered
262+
when the number of running/completed pods is not equal to this value. When not specified,
263+
requeuing is disabled and no check is performed.
259264
type: integer
260265
requeuing:
261-
description: Specification of the requeuing strategy based on
262-
waiting time
266+
description: Specification of the requeuing strategy based on waiting time. Values in this field
267+
control how often the pod check should happen and if requeuing has reached its maximum number of
268+
times.
263269
properties:
264270
initialTimeInSeconds:
271+
description: Value to keep track of the initial wait time. Users cannot set this as it is
272+
taken from 'timeInSeconds'.
265273
type: integer
266274
timeInSeconds:
275+
description: Initial waiting time before requeuing conditions are checked. This value is
276+
specified by the user, but it may grow as requeuing events happen.
267277
type: integer
268278
default: 300
269279
maxTimeInSeconds:
280+
description: Maximum waiting time for requeuing checks
270281
type: integer
271282
default: 0
272283
growthType:
284+
description: Growth strategy to increase the waiting time between requeuing checks. The values
285+
available are 'exponential', 'linear', or 'none'. For example, 'exponential' growth would
286+
double the 'timeInSeconds' value every time a requeuing event is triggered. If the string value
287+
is misspelled or not one of the possible options, the growth behavior is defaulted to 'none'.
273288
type: string
274289
default: "exponential"
275290
numRequeuings:
291+
description: Field to keep track of how many times a requeuing event has been triggered
276292
type: integer
277293
default: 0
278294
maxNumRequeuings:
295+
description: Maximum number of requeuing events allowed. Once this value is reached (e.g.,
296+
'numRequeuings = maxNumRequeuings', no more requeuing checks are performed and the generic
297+
items are stopped and removed from the cluster (AppWrapper remains deployed).
279298
type: integer
280299
default: 0
281300
type: object

config/crd/bases/mcad.ibm.com_queuejobs.yaml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,29 +39,48 @@ spec:
3939
schedulerName:
4040
type: string
4141
schedulingSpec:
42-
description: SchedSpec specifies the parameters for scheduling.
42+
description: Field 'schedulingSpec' specifies the parameters used for scheduling generic items
43+
wrapped inside AppWrappers. It defines the policy for requeuing jobs based on the number
44+
of running pods.
4345
properties:
4446
minAvailable:
47+
description: Expected number of pods in running and/or completed state. Requeuing is triggered
48+
when the number of running/completed pods is not equal to this value. When not specified,
49+
requeuing is disabled and no check is performed.
4550
type: integer
4651
requeuing:
47-
description: Specification of the requeuing strategy based on
48-
waiting time
52+
description: Specification of the requeuing strategy based on waiting time. Values in this field
53+
control how often the pod check should happen and if requeuing has reached its maximum number of
54+
times.
4955
properties:
5056
initialTimeInSeconds:
57+
description: Value to keep track of the initial wait time. Users cannot set this as it is
58+
taken from 'timeInSeconds'.
5159
type: integer
5260
timeInSeconds:
61+
description: Initial waiting time before requeuing conditions are checked. This value is
62+
specified by the user, but it may grow as requeuing events happen.
5363
type: integer
5464
default: 300
5565
maxTimeInSeconds:
66+
description: Maximum waiting time for requeuing checks
5667
type: integer
5768
default: 0
5869
growthType:
70+
description: Growth strategy to increase the waiting time between requeuing checks. The values
71+
available are 'exponential', 'linear', or 'none'. For example, 'exponential' growth would
72+
double the 'timeInSeconds' value every time a requeuing event is triggered. If the string value
73+
is misspelled or not one of the possible options, the growth behavior is defaulted to 'none'.
5974
type: string
6075
default: "exponential"
6176
numRequeuings:
77+
description: Field to keep track of how many times a requeuing event has been triggered
6278
type: integer
6379
default: 0
6480
maxNumRequeuings:
81+
description: Maximum number of requeuing events allowed. Once this value is reached (e.g.,
82+
'numRequeuings = maxNumRequeuings', no more requeuing checks are performed and the generic
83+
items are stopped and removed from the cluster (AppWrapper remains deployed).
6584
type: integer
6685
default: 0
6786
type: object

config/crd/bases/mcad.ibm.com_schedulingspecs.yaml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,26 +35,43 @@ spec:
3535
spec:
3636
properties:
3737
minAvailable:
38+
description: Expected number of pods in running and/or completed state. Requeuing is triggered
39+
when the number of running/completed pods is not equal to this value. When not specified,
40+
requeuing is disabled and no check is performed.
3841
type: integer
3942
requeuing:
40-
description: Specification of the requeuing strategy based on
41-
waiting time
43+
description: Specification of the requeuing strategy based on waiting time. Values in this field
44+
control how often the pod check should happen and if requeuing has reached its maximum number of
45+
times.
4246
properties:
4347
initialTimeInSeconds:
48+
description: Value to keep track of the initial wait time. Users cannot set this as it is
49+
taken from 'timeInSeconds'.
4450
type: integer
4551
timeInSeconds:
52+
description: Initial waiting time before requeuing conditions are checked. This value is
53+
specified by the user, but it may grow as requeuing events happen.
4654
type: integer
4755
default: 300
4856
maxTimeInSeconds:
57+
description: Maximum waiting time for requeuing checks
4958
type: integer
5059
default: 0
5160
growthType:
61+
description: Growth strategy to increase the waiting time between requeuing checks. The values
62+
available are 'exponential', 'linear', or 'none'. For example, 'exponential' growth would
63+
double the 'timeInSeconds' value every time a requeuing event is triggered. If the string value
64+
is misspelled or not one of the possible options, the growth behavior is defaulted to 'none'.
5265
type: string
5366
default: "exponential"
5467
numRequeuings:
68+
description: Field to keep track of how many times a requeuing event has been triggered
5569
type: integer
5670
default: 0
5771
maxNumRequeuings:
72+
description: Maximum number of requeuing events allowed. Once this value is reached (e.g.,
73+
'numRequeuings = maxNumRequeuings', no more requeuing checks are performed and the generic
74+
items are stopped and removed from the cluster (AppWrapper remains deployed).
5875
type: integer
5976
default: 0
6077
type: object

deployment/Dockerfile.both

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,17 @@ ADD mcad-controller /usr/local/bin
55
RUN true \
66
&& microdnf update \
77
&& microdnf --nodocs install \
8-
curl \
8+
curl shadow-utils \
99
&& microdnf clean all \
1010
&& true
1111

1212
RUN cd /usr/local/bin && curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl && chmod +x kubectl
1313

1414
WORKDIR /usr/local/bin
15+
16+
RUN groupadd --system --gid=9999 mcad && \
17+
useradd --system --create-home --uid=9999 --gid=mcad mcad
18+
19+
RUN chown -R mcad:mcad /usr/local/bin
20+
21+
USER mcad

deployment/mcad-controller/templates/deployment.yaml

Lines changed: 63 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -198,26 +198,43 @@ spec:
198198
spec:
199199
properties:
200200
minAvailable:
201+
description: Expected number of pods in running and/or completed state. Requeuing is triggered
202+
when the number of running/completed pods is not equal to this value. When not specified,
203+
requeuing is disabled and no check is performed.
201204
type: integer
202205
requeuing:
203-
description: Specification of the requeuing strategy based on
204-
waiting time
206+
description: Specification of the requeuing strategy based on waiting time. Values in this field
207+
control how often the pod check should happen and if requeuing has reached its maximum number of
208+
times.
205209
properties:
206210
initialTimeInSeconds:
211+
description: Value to keep track of the initial wait time. Users cannot set this as it is
212+
taken from 'timeInSeconds'.
207213
type: integer
208214
timeInSeconds:
215+
description: Initial waiting time before requeuing conditions are checked. This value is
216+
specified by the user, but it may grow as requeuing events happen.
209217
type: integer
210218
default: 300
211219
maxTimeInSeconds:
220+
description: Maximum waiting time for requeuing checks
212221
type: integer
213222
default: 0
214223
growthType:
224+
description: Growth strategy to increase the waiting time between requeuing checks. The values
225+
available are 'exponential', 'linear', or 'none'. For example, 'exponential' growth would
226+
double the 'timeInSeconds' value every time a requeuing event is triggered. If the string value
227+
is misspelled or not one of the possible options, the growth behavior is defaulted to 'none'.
215228
type: string
216229
default: "exponential"
217230
numRequeuings:
231+
description: Field to keep track of how many times a requeuing event has been triggered
218232
type: integer
219233
default: 0
220234
maxNumRequeuings:
235+
description: Maximum number of requeuing events allowed. Once this value is reached (e.g.,
236+
'numRequeuings = maxNumRequeuings', no more requeuing checks are performed and the generic
237+
items are stopped and removed from the cluster (AppWrapper remains deployed).
221238
type: integer
222239
default: 0
223240
type: object
@@ -281,29 +298,48 @@ spec:
281298
schedulerName:
282299
type: string
283300
schedulingSpec:
284-
description: SchedSpec specifies the parameters for scheduling.
301+
description: Field 'schedulingSpec' specifies the parameters used for scheduling generic items
302+
wrapped inside AppWrappers. It defines the policy for requeuing jobs based on the number
303+
of running pods.
285304
properties:
286305
minAvailable:
306+
description: Expected number of pods in running and/or completed state. Requeuing is triggered
307+
when the number of running/completed pods is not equal to this value. When not specified,
308+
requeuing is disabled and no check is performed.
287309
type: integer
288310
requeuing:
289-
description: Specification of the requeuing strategy based on
290-
waiting time
311+
description: Specification of the requeuing strategy based on waiting time. Values in this field
312+
control how often the pod check should happen and if requeuing has reached its maximum number of
313+
times.
291314
properties:
292315
initialTimeInSeconds:
316+
description: Value to keep track of the initial wait time. Users cannot set this as it is
317+
taken from 'timeInSeconds'.
293318
type: integer
294319
timeInSeconds:
320+
description: Initial waiting time before requeuing conditions are checked. This value is
321+
specified by the user, but it may grow as requeuing events happen.
295322
type: integer
296323
default: 300
297324
maxTimeInSeconds:
325+
description: Maximum waiting time for requeuing checks
298326
type: integer
299327
default: 0
300328
growthType:
329+
description: Growth strategy to increase the waiting time between requeuing checks. The values
330+
available are 'exponential', 'linear', or 'none'. For example, 'exponential' growth would
331+
double the 'timeInSeconds' value every time a requeuing event is triggered. If the string value
332+
is misspelled or not one of the possible options, the growth behavior is defaulted to 'none'.
301333
type: string
302334
default: "exponential"
303335
numRequeuings:
336+
description: Field to keep track of how many times a requeuing event has been triggered
304337
type: integer
305338
default: 0
306339
maxNumRequeuings:
340+
description: Maximum number of requeuing events allowed. Once this value is reached (e.g.,
341+
'numRequeuings = maxNumRequeuings', no more requeuing checks are performed and the generic
342+
items are stopped and removed from the cluster (AppWrapper remains deployed).
307343
type: integer
308344
default: 0
309345
type: object
@@ -7348,29 +7384,48 @@ spec:
73487384
type: object
73497385
type: object
73507386
schedulingSpec:
7351-
description: SchedSpec specifies the parameters for scheduling.
7387+
description: Field 'schedulingSpec' specifies the parameters used for scheduling generic items
7388+
wrapped inside AppWrappers. It defines the policy for requeuing jobs based on the number
7389+
of running pods.
73527390
properties:
73537391
minAvailable:
7392+
description: Expected number of pods in running and/or completed state. Requeuing is triggered
7393+
when the number of running/completed pods is not equal to this value. When not specified,
7394+
requeuing is disabled and no check is performed.
73547395
type: integer
73557396
requeuing:
7356-
description: Specification of the requeuing strategy based on
7357-
waiting time
7397+
description: Specification of the requeuing strategy based on waiting time. Values in this field
7398+
control how often the pod check should happen and if requeuing has reached its maximum number of
7399+
times.
73587400
properties:
73597401
initialTimeInSeconds:
7402+
description: Value to keep track of the initial wait time. Users cannot set this as it is
7403+
taken from 'timeInSeconds'.
73607404
type: integer
73617405
timeInSeconds:
7406+
description: Initial waiting time before requeuing conditions are checked. This value is
7407+
specified by the user, but it may grow as requeuing events happen.
73627408
type: integer
73637409
default: 300
73647410
maxTimeInSeconds:
7411+
description: Maximum waiting time for requeuing checks
73657412
type: integer
73667413
default: 0
73677414
growthType:
7415+
description: Growth strategy to increase the waiting time between requeuing checks. The values
7416+
available are 'exponential', 'linear', or 'none'. For example, 'exponential' growth would
7417+
double the 'timeInSeconds' value every time a requeuing event is triggered. If the string value
7418+
is misspelled or not one of the possible options, the growth behavior is defaulted to 'none'.
73687419
type: string
73697420
default: "exponential"
73707421
numRequeuings:
7422+
description: Field to keep track of how many times a requeuing event has been triggered
73717423
type: integer
73727424
default: 0
73737425
maxNumRequeuings:
7426+
description: Maximum number of requeuing events allowed. Once this value is reached (e.g.,
7427+
'numRequeuings = maxNumRequeuings', no more requeuing checks are performed and the generic
7428+
items are stopped and removed from the cluster (AppWrapper remains deployed).
73747429
type: integer
73757430
default: 0
73767431
type: object

0 commit comments

Comments
 (0)