Skip to content

Commit 5429a7b

Browse files
committed
Specify isDefault
Signed-off-by: Philippe Martin <[email protected]>
1 parent 8606124 commit 5429a7b

19 files changed

+116
-100
lines changed

crds/workspace.devfile.io_devworkspaces.v1beta1.yaml

+16-12
Original file line numberDiff line numberDiff line change
@@ -4329,8 +4329,9 @@ spec:
43294329
on its own and won't be restarted. A *hotReloadCapable*
43304330
`build` command is expected to be executed only
43314331
once and won't be executed again. This field is
4332-
ignored for commands other than `build`, `run` or
4333-
`debug`. \n Default value is `false`"
4332+
taken into account only for commands `build`, `run`
4333+
and `debug` with `isDefault` set to `true`. \n Default
4334+
value is `false`"
43344335
type: boolean
43354336
label:
43364337
description: Optional label that provides a label
@@ -5229,9 +5230,10 @@ spec:
52295230
`debug` command is expected to handle file changes
52305231
on its own and won't be restarted. A *hotReloadCapable*
52315232
`build` command is expected to be executed only once
5232-
and won't be executed again. This field is ignored
5233-
for commands other than `build`, `run` or `debug`.
5234-
\n Default value is `false`"
5233+
and won't be executed again. This field is taken into
5234+
account only for commands `build`, `run` and `debug`
5235+
with `isDefault` set to `true`. \n Default value is
5236+
`false`"
52355237
type: boolean
52365238
label:
52375239
description: Optional label that provides a label for
@@ -6051,8 +6053,9 @@ spec:
60516053
be restarted. A *hotReloadCapable* `build`
60526054
command is expected to be executed only
60536055
once and won't be executed again. This field
6054-
is ignored for commands other than `build`,
6055-
`run` or `debug`. \n Default value is `false`"
6056+
is taken into account only for commands
6057+
`build`, `run` and `debug` with `isDefault`
6058+
set to `true`. \n Default value is `false`"
60566059
type: boolean
60576060
label:
60586061
description: Optional label that provides
@@ -7006,8 +7009,9 @@ spec:
70067009
changes on its own and won't be restarted. A *hotReloadCapable*
70077010
`build` command is expected to be executed only
70087011
once and won't be executed again. This field is
7009-
ignored for commands other than `build`, `run`
7010-
or `debug`. \n Default value is `false`"
7012+
taken into account only for commands `build`,
7013+
`run` and `debug` with `isDefault` set to `true`.
7014+
\n Default value is `false`"
70117015
type: boolean
70127016
label:
70137017
description: Optional label that provides a label
@@ -7814,9 +7818,9 @@ spec:
78147818
*hotReloadCapable* `build` command is
78157819
expected to be executed only once and
78167820
won't be executed again. This field
7817-
is ignored for commands other than `build`,
7818-
`run` or `debug`. \n Default value is
7819-
`false`"
7821+
is taken into account only for commands
7822+
`build`, `run` and `debug` with `isDefault`
7823+
set to `true`. \n Default value is `false`"
78207824
type: boolean
78217825
label:
78227826
description: Optional label that provides

crds/workspace.devfile.io_devworkspaces.yaml

+16-12
Original file line numberDiff line numberDiff line change
@@ -4327,8 +4327,9 @@ spec:
43274327
on its own and won't be restarted. A *hotReloadCapable*
43284328
`build` command is expected to be executed only
43294329
once and won't be executed again. This field is
4330-
ignored for commands other than `build`, `run` or
4331-
`debug`. \n Default value is `false`"
4330+
taken into account only for commands `build`, `run`
4331+
and `debug` with `isDefault` set to `true`. \n Default
4332+
value is `false`"
43324333
type: boolean
43334334
label:
43344335
description: Optional label that provides a label
@@ -5227,9 +5228,10 @@ spec:
52275228
`debug` command is expected to handle file changes
52285229
on its own and won't be restarted. A *hotReloadCapable*
52295230
`build` command is expected to be executed only once
5230-
and won't be executed again. This field is ignored
5231-
for commands other than `build`, `run` or `debug`.
5232-
\n Default value is `false`"
5231+
and won't be executed again. This field is taken into
5232+
account only for commands `build`, `run` and `debug`
5233+
with `isDefault` set to `true`. \n Default value is
5234+
`false`"
52335235
type: boolean
52345236
label:
52355237
description: Optional label that provides a label for
@@ -6056,8 +6058,9 @@ spec:
60566058
be restarted. A *hotReloadCapable* `build`
60576059
command is expected to be executed only
60586060
once and won't be executed again. This field
6059-
is ignored for commands other than `build`,
6060-
`run` or `debug`. \n Default value is `false`"
6061+
is taken into account only for commands
6062+
`build`, `run` and `debug` with `isDefault`
6063+
set to `true`. \n Default value is `false`"
60616064
type: boolean
60626065
label:
60636066
description: Optional label that provides
@@ -7011,8 +7014,9 @@ spec:
70117014
changes on its own and won't be restarted. A *hotReloadCapable*
70127015
`build` command is expected to be executed only
70137016
once and won't be executed again. This field is
7014-
ignored for commands other than `build`, `run`
7015-
or `debug`. \n Default value is `false`"
7017+
taken into account only for commands `build`,
7018+
`run` and `debug` with `isDefault` set to `true`.
7019+
\n Default value is `false`"
70167020
type: boolean
70177021
label:
70187022
description: Optional label that provides a label
@@ -7819,9 +7823,9 @@ spec:
78197823
*hotReloadCapable* `build` command is
78207824
expected to be executed only once and
78217825
won't be executed again. This field
7822-
is ignored for commands other than `build`,
7823-
`run` or `debug`. \n Default value is
7824-
`false`"
7826+
is taken into account only for commands
7827+
`build`, `run` and `debug` with `isDefault`
7828+
set to `true`. \n Default value is `false`"
78257829
type: boolean
78267830
label:
78277831
description: Optional label that provides

crds/workspace.devfile.io_devworkspacetemplates.v1beta1.yaml

+13-9
Original file line numberDiff line numberDiff line change
@@ -4140,8 +4140,9 @@ spec:
41404140
to handle file changes on its own and won't be restarted.
41414141
A *hotReloadCapable* `build` command is expected to be
41424142
executed only once and won't be executed again. This field
4143-
is ignored for commands other than `build`, `run` or `debug`.
4144-
\n Default value is `false`"
4143+
is taken into account only for commands `build`, `run`
4144+
and `debug` with `isDefault` set to `true`. \n Default
4145+
value is `false`"
41454146
type: boolean
41464147
label:
41474148
description: Optional label that provides a label for this
@@ -4939,8 +4940,9 @@ spec:
49394940
file changes on its own and won't be restarted.
49404941
A *hotReloadCapable* `build` command is expected
49414942
to be executed only once and won't be executed
4942-
again. This field is ignored for commands other
4943-
than `build`, `run` or `debug`. \n Default value
4943+
again. This field is taken into account only
4944+
for commands `build`, `run` and `debug` with
4945+
`isDefault` set to `true`. \n Default value
49444946
is `false`"
49454947
type: boolean
49464948
label:
@@ -5852,9 +5854,10 @@ spec:
58525854
`debug` command is expected to handle file changes
58535855
on its own and won't be restarted. A *hotReloadCapable*
58545856
`build` command is expected to be executed only once
5855-
and won't be executed again. This field is ignored
5856-
for commands other than `build`, `run` or `debug`.
5857-
\n Default value is `false`"
5857+
and won't be executed again. This field is taken into
5858+
account only for commands `build`, `run` and `debug`
5859+
with `isDefault` set to `true`. \n Default value is
5860+
`false`"
58585861
type: boolean
58595862
label:
58605863
description: Optional label that provides a label for
@@ -6639,8 +6642,9 @@ spec:
66396642
be restarted. A *hotReloadCapable* `build`
66406643
command is expected to be executed only
66416644
once and won't be executed again. This field
6642-
is ignored for commands other than `build`,
6643-
`run` or `debug`. \n Default value is `false`"
6645+
is taken into account only for commands
6646+
`build`, `run` and `debug` with `isDefault`
6647+
set to `true`. \n Default value is `false`"
66446648
type: boolean
66456649
label:
66466650
description: Optional label that provides

crds/workspace.devfile.io_devworkspacetemplates.yaml

+13-9
Original file line numberDiff line numberDiff line change
@@ -4138,8 +4138,9 @@ spec:
41384138
to handle file changes on its own and won't be restarted.
41394139
A *hotReloadCapable* `build` command is expected to be
41404140
executed only once and won't be executed again. This field
4141-
is ignored for commands other than `build`, `run` or `debug`.
4142-
\n Default value is `false`"
4141+
is taken into account only for commands `build`, `run`
4142+
and `debug` with `isDefault` set to `true`. \n Default
4143+
value is `false`"
41434144
type: boolean
41444145
label:
41454146
description: Optional label that provides a label for this
@@ -4944,8 +4945,9 @@ spec:
49444945
file changes on its own and won't be restarted.
49454946
A *hotReloadCapable* `build` command is expected
49464947
to be executed only once and won't be executed
4947-
again. This field is ignored for commands other
4948-
than `build`, `run` or `debug`. \n Default value
4948+
again. This field is taken into account only
4949+
for commands `build`, `run` and `debug` with
4950+
`isDefault` set to `true`. \n Default value
49494951
is `false`"
49504952
type: boolean
49514953
label:
@@ -5857,9 +5859,10 @@ spec:
58575859
`debug` command is expected to handle file changes
58585860
on its own and won't be restarted. A *hotReloadCapable*
58595861
`build` command is expected to be executed only once
5860-
and won't be executed again. This field is ignored
5861-
for commands other than `build`, `run` or `debug`.
5862-
\n Default value is `false`"
5862+
and won't be executed again. This field is taken into
5863+
account only for commands `build`, `run` and `debug`
5864+
with `isDefault` set to `true`. \n Default value is
5865+
`false`"
58635866
type: boolean
58645867
label:
58655868
description: Optional label that provides a label for
@@ -6644,8 +6647,9 @@ spec:
66446647
be restarted. A *hotReloadCapable* `build`
66456648
command is expected to be executed only
66466649
once and won't be executed again. This field
6647-
is ignored for commands other than `build`,
6648-
`run` or `debug`. \n Default value is `false`"
6650+
is taken into account only for commands
6651+
`build`, `run` and `debug` with `isDefault`
6652+
set to `true`. \n Default value is `false`"
66496653
type: boolean
66506654
label:
66516655
description: Optional label that provides

pkg/apis/workspaces/v1alpha2/commands.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ type ExecCommand struct {
148148
// If set to `true` the command won't be restarted.
149149
// A *hotReloadCapable* `run` or `debug` command is expected to handle file changes on its own and won't be restarted.
150150
// A *hotReloadCapable* `build` command is expected to be executed only once and won't be executed again.
151-
// This field is ignored for commands other than `build`, `run` or `debug`.
151+
// This field is taken into account only for commands `build`, `run` and `debug` with `isDefault` set to `true`.
152152
//
153153
// Default value is `false`
154154
// +devfile:default:value=false

pkg/apis/workspaces/v1alpha2/zz_generated.parent_overrides.go

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/apis/workspaces/v1alpha2/zz_generated.plugin_overrides.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)