diff --git a/deploy/crds/workspace.devfile.io_devworkspaces_crd.yaml b/deploy/crds/workspace.devfile.io_devworkspaces_crd.yaml index 6f9d703e8..558d3dbe4 100644 --- a/deploy/crds/workspace.devfile.io_devworkspaces_crd.yaml +++ b/deploy/crds/workspace.devfile.io_devworkspaces_crd.yaml @@ -370,6 +370,12 @@ spec: items: type: string type: array + dedicatedPod: + description: "Specify if a container should run in its + own separated pod, instead of running as part of the + main development environment pod. \n Default value is + `false`" + type: boolean endpoints: items: properties: @@ -886,6 +892,12 @@ spec: items: type: string type: array + dedicatedPod: + description: "Specify if a container should + run in its own separated pod, instead of running + as part of the main development environment + pod. \n Default value is `false`" + type: boolean endpoints: items: properties: @@ -1477,6 +1489,12 @@ spec: items: type: string type: array + dedicatedPod: + description: "Specify if a container should run in + its own separated pod, instead of running as part + of the main development environment pod. \n Default + value is `false`" + type: boolean endpoints: items: properties: @@ -2005,6 +2023,12 @@ spec: items: type: string type: array + dedicatedPod: + description: "Specify if a container should + run in its own separated pod, instead + of running as part of the main development + environment pod. \n Default value is `false`" + type: boolean endpoints: items: properties: diff --git a/deploy/crds/workspace.devfile.io_devworkspacetemplates_crd.yaml b/deploy/crds/workspace.devfile.io_devworkspacetemplates_crd.yaml index c9377c7ea..11de0cf3e 100644 --- a/deploy/crds/workspace.devfile.io_devworkspacetemplates_crd.yaml +++ b/deploy/crds/workspace.devfile.io_devworkspacetemplates_crd.yaml @@ -345,6 +345,11 @@ spec: items: type: string type: array + dedicatedPod: + description: "Specify if a container should run in its own + separated pod, instead of running as part of the main development + environment pod. \n Default value is `false`" + type: boolean endpoints: items: properties: @@ -858,6 +863,12 @@ spec: items: type: string type: array + dedicatedPod: + description: "Specify if a container should run + in its own separated pod, instead of running as + part of the main development environment pod. + \n Default value is `false`" + type: boolean endpoints: items: properties: @@ -1425,6 +1436,12 @@ spec: items: type: string type: array + dedicatedPod: + description: "Specify if a container should run in its + own separated pod, instead of running as part of the + main development environment pod. \n Default value is + `false`" + type: boolean endpoints: items: properties: @@ -1941,6 +1958,12 @@ spec: items: type: string type: array + dedicatedPod: + description: "Specify if a container should + run in its own separated pod, instead of running + as part of the main development environment + pod. \n Default value is `false`" + type: boolean endpoints: items: properties: diff --git a/pkg/apis/workspaces/v1alpha1/containerComponent.go b/pkg/apis/workspaces/v1alpha1/containerComponent.go index 6e1756ebc..caed91b1b 100644 --- a/pkg/apis/workspaces/v1alpha1/containerComponent.go +++ b/pkg/apis/workspaces/v1alpha1/containerComponent.go @@ -59,28 +59,34 @@ type Container struct { // List of volumes mounts that should be mounted is this container. VolumeMounts []VolumeMount `json:"volumeMounts,omitempty"` - //+optional + // +optional MemoryLimit string `json:"memoryLimit,omitempty"` // The command to run in the dockerimage component instead of the default one provided in the image. // Defaults to an empty array, meaning use whatever is defined in the image. - //+optional + // +optional Command []string `json:"command,omitempty"` // The arguments to supply to the command running the dockerimage component. The arguments are supplied either to the default command provided in the image or to the overridden command. // Defaults to an empty array, meaning use whatever is defined in the image. - //+optional + // +optional Args []string `json:"args,omitempty"` - //+optional + // +optional MountSources bool `json:"mountSources"` - //+optional - // // Optional specification of the path in the container where // project sources should be transferred/mounted when `mountSources` is `true`. // When omitted, the value of the `PROJECTS_ROOT` environment variable is used. + // +optional SourceMapping string `json:"sourceMapping"` + + // Specify if a container should run in its own separated pod, + // instead of running as part of the main development environment pod. + // + // Default value is `false` + // +optional + DedicatedPod bool `json:"dedicatedPod"` } type EnvVar struct { diff --git a/schemas/devfile.json b/schemas/devfile.json index 3d7253977..c37d419f3 100644 --- a/schemas/devfile.json +++ b/schemas/devfile.json @@ -326,6 +326,10 @@ }, "type": "array" }, + "dedicatedPod": { + "description": "Specify if a container should run in its own separated pod, instead of running as part of the main development environment pod. \n Default value is `false`", + "type": "boolean" + }, "endpoints": { "items": { "properties": { @@ -849,6 +853,10 @@ }, "type": "array" }, + "dedicatedPod": { + "description": "Specify if a container should run in its own separated pod, instead of running as part of the main development environment pod. \n Default value is `false`", + "type": "boolean" + }, "endpoints": { "items": { "properties": { @@ -1554,6 +1562,10 @@ }, "type": "array" }, + "dedicatedPod": { + "description": "Specify if a container should run in its own separated pod, instead of running as part of the main development environment pod. \n Default value is `false`", + "type": "boolean" + }, "endpoints": { "items": { "properties": { @@ -2075,6 +2087,10 @@ }, "type": "array" }, + "dedicatedPod": { + "description": "Specify if a container should run in its own separated pod, instead of running as part of the main development environment pod. \n Default value is `false`", + "type": "boolean" + }, "endpoints": { "items": { "properties": { diff --git a/schemas/devworkspace-template-spec.json b/schemas/devworkspace-template-spec.json index 79e92a916..9e5730ed3 100644 --- a/schemas/devworkspace-template-spec.json +++ b/schemas/devworkspace-template-spec.json @@ -390,6 +390,10 @@ }, "type": "array" }, + "dedicatedPod": { + "description": "Specify if a container should run in its own separated pod, instead of running as part of the main development environment pod. \n Default value is `false`", + "type": "boolean" + }, "endpoints": { "items": { "properties": { @@ -1001,6 +1005,10 @@ }, "type": "array" }, + "dedicatedPod": { + "description": "Specify if a container should run in its own separated pod, instead of running as part of the main development environment pod. \n Default value is `false`", + "type": "boolean" + }, "endpoints": { "items": { "properties": { @@ -1775,6 +1783,10 @@ }, "type": "array" }, + "dedicatedPod": { + "description": "Specify if a container should run in its own separated pod, instead of running as part of the main development environment pod. \n Default value is `false`", + "type": "boolean" + }, "endpoints": { "items": { "properties": { @@ -2384,6 +2396,10 @@ }, "type": "array" }, + "dedicatedPod": { + "description": "Specify if a container should run in its own separated pod, instead of running as part of the main development environment pod. \n Default value is `false`", + "type": "boolean" + }, "endpoints": { "items": { "properties": { diff --git a/schemas/devworkspace-template.json b/schemas/devworkspace-template.json index 61259b737..bea490e51 100644 --- a/schemas/devworkspace-template.json +++ b/schemas/devworkspace-template.json @@ -405,6 +405,10 @@ }, "type": "array" }, + "dedicatedPod": { + "description": "Specify if a container should run in its own separated pod, instead of running as part of the main development environment pod. \n Default value is `false`", + "type": "boolean" + }, "endpoints": { "items": { "properties": { @@ -1016,6 +1020,10 @@ }, "type": "array" }, + "dedicatedPod": { + "description": "Specify if a container should run in its own separated pod, instead of running as part of the main development environment pod. \n Default value is `false`", + "type": "boolean" + }, "endpoints": { "items": { "properties": { @@ -1790,6 +1798,10 @@ }, "type": "array" }, + "dedicatedPod": { + "description": "Specify if a container should run in its own separated pod, instead of running as part of the main development environment pod. \n Default value is `false`", + "type": "boolean" + }, "endpoints": { "items": { "properties": { @@ -2399,6 +2411,10 @@ }, "type": "array" }, + "dedicatedPod": { + "description": "Specify if a container should run in its own separated pod, instead of running as part of the main development environment pod. \n Default value is `false`", + "type": "boolean" + }, "endpoints": { "items": { "properties": { diff --git a/schemas/devworkspace.json b/schemas/devworkspace.json index 5b2d2128c..6baa4a1fe 100644 --- a/schemas/devworkspace.json +++ b/schemas/devworkspace.json @@ -414,6 +414,10 @@ }, "type": "array" }, + "dedicatedPod": { + "description": "Specify if a container should run in its own separated pod, instead of running as part of the main development environment pod. \n Default value is `false`", + "type": "boolean" + }, "endpoints": { "items": { "properties": { @@ -1025,6 +1029,10 @@ }, "type": "array" }, + "dedicatedPod": { + "description": "Specify if a container should run in its own separated pod, instead of running as part of the main development environment pod. \n Default value is `false`", + "type": "boolean" + }, "endpoints": { "items": { "properties": { @@ -1799,6 +1807,10 @@ }, "type": "array" }, + "dedicatedPod": { + "description": "Specify if a container should run in its own separated pod, instead of running as part of the main development environment pod. \n Default value is `false`", + "type": "boolean" + }, "endpoints": { "items": { "properties": { @@ -2408,6 +2420,10 @@ }, "type": "array" }, + "dedicatedPod": { + "description": "Specify if a container should run in its own separated pod, instead of running as part of the main development environment pod. \n Default value is `false`", + "type": "boolean" + }, "endpoints": { "items": { "properties": {