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 {
31
31
Endpoints map [string ]EndpointList `json:"endpoints"`
32
32
// Selector that should be used by created services to point to the devworkspace Pod
33
33
PodSelector map [string ]string `json:"podSelector"`
34
+ // Machines to services map
35
+ // +optional
36
+ // +kubebuilder:validation:Optional
37
+ Service map [string ]Service `json:"services"`
34
38
}
35
39
36
40
type DevWorkspaceRoutingClass string
@@ -108,6 +112,14 @@ type EndpointProtocol string
108
112
// +kubebuilder:validation:XPreserveUnknownFields
109
113
type Attributes map [string ]apiext.JSON
110
114
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
+
111
123
type Endpoint struct {
112
124
// +kubebuilder:validation:Pattern=^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
113
125
// +kubebuilder:validation:MaxLength=63
You can’t perform that action at this time.
0 commit comments