Skip to content

Commit ef9f515

Browse files
authored
add autobuild and deploybydefault field (#709)
* add autobuild and autodeploy field Signed-off-by: Stephanie <[email protected]> * fix build failure Signed-off-by: Stephanie <[email protected]> * update description for apply command Signed-off-by: Stephanie <[email protected]>
1 parent 959f3c8 commit ef9f515

29 files changed

+1016
-78
lines changed

crds/workspace.devfile.io_devworkspaces.v1beta1.yaml

Lines changed: 69 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ spec:
8484
POD, unless the component has its `dedicatedPod` field set
8585
to `true`. \n When no `apply` command exist for a given
8686
component, it is assumed the component will be applied at
87-
devworkspace start by default."
87+
devworkspace start by default, unless `deployByDefault`
88+
for that component is set to false."
8889
properties:
8990
component:
9091
description: Describes component that will be applied
@@ -548,6 +549,10 @@ spec:
548549
- required:
549550
- dockerfile
550551
properties:
552+
autoBuild:
553+
description: Defines if the image should be built during
554+
startup Default is false
555+
type: boolean
551556
dockerfile:
552557
description: Allows specifying dockerfile type build
553558
oneOf:
@@ -666,6 +671,10 @@ spec:
666671
- required:
667672
- inlined
668673
properties:
674+
deployByDefault:
675+
description: Defines if the component should be deployed
676+
during startup Default is false
677+
type: boolean
669678
endpoints:
670679
items:
671680
properties:
@@ -780,6 +789,10 @@ spec:
780789
- required:
781790
- inlined
782791
properties:
792+
deployByDefault:
793+
description: Defines if the component should be deployed
794+
during startup Default is false
795+
type: boolean
783796
endpoints:
784797
items:
785798
properties:
@@ -913,7 +926,8 @@ spec:
913926
its `dedicatedPod` field set to `true`. \n When
914927
no `apply` command exist for a given component,
915928
it is assumed the component will be applied at
916-
devworkspace start by default."
929+
devworkspace start by default, unless `deployByDefault`
930+
for that component is set to false."
917931
properties:
918932
component:
919933
description: Describes component that will be
@@ -1319,7 +1333,13 @@ spec:
13191333
oneOf:
13201334
- required:
13211335
- dockerfile
1336+
- required:
1337+
- autoBuild
13221338
properties:
1339+
autoBuild:
1340+
description: Defines if the image should be
1341+
built during startup Default is false
1342+
type: boolean
13231343
dockerfile:
13241344
description: Allows specifying dockerfile type
13251345
build
@@ -1426,6 +1446,7 @@ spec:
14261446
description: Type of image
14271447
enum:
14281448
- Dockerfile
1449+
- AutoBuild
14291450
type: string
14301451
type: object
14311452
kubernetes:
@@ -1440,6 +1461,10 @@ spec:
14401461
- required:
14411462
- inlined
14421463
properties:
1464+
deployByDefault:
1465+
description: Defines if the component should
1466+
be deployed during startup Default is false
1467+
type: boolean
14431468
endpoints:
14441469
items:
14451470
properties:
@@ -1564,6 +1589,10 @@ spec:
15641589
- required:
15651590
- inlined
15661591
properties:
1592+
deployByDefault:
1593+
description: Defines if the component should
1594+
be deployed during startup Default is false
1595+
type: boolean
15671596
endpoints:
15681597
items:
15691598
properties:
@@ -1809,7 +1838,9 @@ spec:
18091838
in the devworkspace POD, unless the component has its
18101839
`dedicatedPod` field set to `true`. \n When no `apply`
18111840
command exist for a given component, it is assumed the
1812-
component will be applied at devworkspace start by default."
1841+
component will be applied at devworkspace start by default,
1842+
unless `deployByDefault` for that component is set to
1843+
false."
18131844
properties:
18141845
component:
18151846
description: Describes component that will be applied
@@ -2203,7 +2234,13 @@ spec:
22032234
oneOf:
22042235
- required:
22052236
- dockerfile
2237+
- required:
2238+
- autoBuild
22062239
properties:
2240+
autoBuild:
2241+
description: Defines if the image should be built
2242+
during startup Default is false
2243+
type: boolean
22072244
dockerfile:
22082245
description: Allows specifying dockerfile type build
22092246
oneOf:
@@ -2306,6 +2343,7 @@ spec:
23062343
description: Type of image
23072344
enum:
23082345
- Dockerfile
2346+
- AutoBuild
23092347
type: string
23102348
type: object
23112349
kubernetes:
@@ -2319,6 +2357,10 @@ spec:
23192357
- required:
23202358
- inlined
23212359
properties:
2360+
deployByDefault:
2361+
description: Defines if the component should be deployed
2362+
during startup Default is false
2363+
type: boolean
23222364
endpoints:
23232365
items:
23242366
properties:
@@ -2434,6 +2476,10 @@ spec:
24342476
- required:
24352477
- inlined
24362478
properties:
2479+
deployByDefault:
2480+
description: Defines if the component should be deployed
2481+
during startup Default is false
2482+
type: boolean
24372483
endpoints:
24382484
items:
24392485
properties:
@@ -2570,7 +2616,9 @@ spec:
25702616
has its `dedicatedPod` field set to `true`.
25712617
\n When no `apply` command exist for a given
25722618
component, it is assumed the component will
2573-
be applied at devworkspace start by default."
2619+
be applied at devworkspace start by default,
2620+
unless `deployByDefault` for that component
2621+
is set to false."
25742622
properties:
25752623
component:
25762624
description: Describes component that will
@@ -2991,7 +3039,13 @@ spec:
29913039
oneOf:
29923040
- required:
29933041
- dockerfile
3042+
- required:
3043+
- autoBuild
29943044
properties:
3045+
autoBuild:
3046+
description: Defines if the image should
3047+
be built during startup Default is false
3048+
type: boolean
29953049
dockerfile:
29963050
description: Allows specifying dockerfile
29973051
type build
@@ -3107,6 +3161,7 @@ spec:
31073161
description: Type of image
31083162
enum:
31093163
- Dockerfile
3164+
- AutoBuild
31103165
type: string
31113166
type: object
31123167
kubernetes:
@@ -3121,6 +3176,11 @@ spec:
31213176
- required:
31223177
- inlined
31233178
properties:
3179+
deployByDefault:
3180+
description: Defines if the component should
3181+
be deployed during startup Default is
3182+
false
3183+
type: boolean
31243184
endpoints:
31253185
items:
31263186
properties:
@@ -3252,6 +3312,11 @@ spec:
32523312
- required:
32533313
- inlined
32543314
properties:
3315+
deployByDefault:
3316+
description: Defines if the component should
3317+
be deployed during startup Default is
3318+
false
3319+
type: boolean
32553320
endpoints:
32563321
items:
32573322
properties:

0 commit comments

Comments
 (0)