Skip to content

Commit

Permalink
Add field to DevWorkspace to allow overriding Pod spec (devfile#860)
Browse files Browse the repository at this point in the history
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 <amisevsk@redhat.com>
  • Loading branch information
amisevsk committed Jun 3, 2022
1 parent d6e8681 commit 3b32446
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/apis/workspaces/v1alpha2/devworkspace_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ type DevWorkspaceSpec struct {
Started bool `json:"started"`
RoutingClass string `json:"routingClass,omitempty"`
Template DevWorkspaceTemplateSpec `json:"template,omitempty"`
// PodSpecOverrides defines Pod fields to override within the DevWorkspace's
// Deployment. Fields defined here are strategically merged on top of the Pod
// template in the deployment, allowing for fine-grained customization of the
// Pods that are started for this DevWorkspace.
PodSpecOverrides *corev1.PodSpec `json:"pods,omitempty"`
}

// DevWorkspaceStatus defines the observed state of DevWorkspace
Expand Down

0 comments on commit 3b32446

Please sign in to comment.