File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -139,8 +139,11 @@ type ExecCommand struct {
139
139
Env []EnvVar `json:"env,omitempty" patchStrategy:"merge" patchMergeKey:"name"`
140
140
141
141
// +optional
142
- // Whether the command is capable to reload itself when source code changes.
143
- // If set to `true` the command won't be restarted and it is expected to handle file changes on its own.
142
+ // Whether the command is restarted when source code changes.
143
+ // If set to `true` the command won't be restarted.
144
+ // A *hotReloadCapable* `run` or `debug` command is expected to handle file changes on its own and won't be restarted.
145
+ // A *hotReloadCapable* `build` command is expected to be executed only once and won't be executed again.
146
+ // This field is ignored for commands other than `build`, `run` or `debug`.
144
147
//
145
148
// Default value is `false`
146
149
HotReloadCapable bool `json:"hotReloadCapable,omitempty"`
Original file line number Diff line number Diff line change @@ -144,8 +144,11 @@ type ExecCommand struct {
144
144
Env []EnvVar `json:"env,omitempty" patchStrategy:"merge" patchMergeKey:"name"`
145
145
146
146
// +optional
147
- // Whether the command is capable to reload itself when source code changes.
148
- // If set to `true` the command won't be restarted and it is expected to handle file changes on its own.
147
+ // Whether the command is restarted when source code changes.
148
+ // If set to `true` the command won't be restarted.
149
+ // A *hotReloadCapable* `run` or `debug` command is expected to handle file changes on its own and won't be restarted.
150
+ // 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`.
149
152
//
150
153
// Default value is `false`
151
154
// +devfile:default:value=false
You can’t perform that action at this time.
0 commit comments