Skip to content

Commit 3b32446

Browse files
committed
Add field to DevWorkspace to allow overriding Pod spec (devfile#860)
Add field `pods` to the DevWorkspace spec (but not Devfile or DevWorkspaceTemplate) that allows specifying arbitrary fields on any pods created for the DevWorkspace. Signed-off-by: Angel Misevski <[email protected]>
1 parent d6e8681 commit 3b32446

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: pkg/apis/workspaces/v1alpha2/devworkspace_types.go

+5
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ type DevWorkspaceSpec struct {
1010
Started bool `json:"started"`
1111
RoutingClass string `json:"routingClass,omitempty"`
1212
Template DevWorkspaceTemplateSpec `json:"template,omitempty"`
13+
// PodSpecOverrides defines Pod fields to override within the DevWorkspace's
14+
// Deployment. Fields defined here are strategically merged on top of the Pod
15+
// template in the deployment, allowing for fine-grained customization of the
16+
// Pods that are started for this DevWorkspace.
17+
PodSpecOverrides *corev1.PodSpec `json:"pods,omitempty"`
1318
}
1419

1520
// DevWorkspaceStatus defines the observed state of DevWorkspace

0 commit comments

Comments
 (0)