File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,10 @@ type DevWorkspaceRoutingSpec struct {
3131 Endpoints map [string ]EndpointList `json:"endpoints"`
3232 // Selector that should be used by created services to point to the devworkspace Pod
3333 PodSelector map [string ]string `json:"podSelector"`
34+ // Machines to services map
35+ // +optional
36+ // +kubebuilder:validation:Optional
37+ Service map [string ]Service `json:"services"`
3438}
3539
3640type DevWorkspaceRoutingClass string
@@ -108,6 +112,14 @@ type EndpointProtocol string
108112// +kubebuilder:validation:XPreserveUnknownFields
109113type Attributes map [string ]apiext.JSON
110114
115+ type Service struct {
116+ // Map of annotations to be added to the Kubernetes Service.
117+ // +optional
118+ // +patchMergeKey=name
119+ // +patchStrategy=merge
120+ Annotations map [string ]string `json:"annotations,omitempty"`
121+ }
122+
111123type Endpoint struct {
112124 // +kubebuilder:validation:Pattern=^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
113125 // +kubebuilder:validation:MaxLength=63
You can’t perform that action at this time.
0 commit comments