Skip to content

Commit

Permalink
devworkspace controller should create routing with empty host
Browse files Browse the repository at this point in the history
  • Loading branch information
tinakurian committed Apr 16, 2021
1 parent 871c0c8 commit 4cdcd55
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 12 deletions.
2 changes: 0 additions & 2 deletions apis/controller/v1alpha1/devworkspacerouting_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ type DevWorkspaceRoutingSpec struct {
DevWorkspaceId string `json:"devworkspaceId"`
// Class of the routing: this drives which DevWorkspaceRouting controller will manage this routing
RoutingClass DevWorkspaceRoutingClass `json:"routingClass,omitempty"`
// Routing suffix for cluster
RoutingSuffix string `json:"routingSuffix"`
// Machines to endpoints map
Endpoints map[string]EndpointList `json:"endpoints"`
// Selector that should be used by created services to point to the devworkspace Pod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ func (r *DevWorkspaceRoutingReconciler) Reconcile(req ctrl.Request) (ctrl.Result
DevWorkspaceId: instance.Spec.DevWorkspaceId,
Namespace: instance.Namespace,
PodSelector: instance.Spec.PodSelector,
RoutingSuffix: instance.Spec.RoutingSuffix,
}

restrictedAccess, setRestrictedAccess := instance.Annotations[constants.DevWorkspaceRestrictedAccessAnnotation]
Expand Down
1 change: 0 additions & 1 deletion controllers/workspace/provision/routing.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ func getSpecRouting(
Spec: v1alpha1.DevWorkspaceRoutingSpec{
DevWorkspaceId: workspace.Status.DevWorkspaceId,
RoutingClass: v1alpha1.DevWorkspaceRoutingClass(routingClass),
RoutingSuffix: config.ControllerCfg.GetRoutingSuffix(),
Endpoints: endpoints,
PodSelector: map[string]string{
constants.DevWorkspaceIDLabel: workspace.Status.DevWorkspaceId,
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,6 @@ func (wc *ControllerConfig) GetExperimentalFeaturesEnabled() bool {
return wc.GetPropertyOrDefault(experimentalFeaturesEnabled, defaultExperimentalFeaturesEnabled) == "true"
}

func (wc *ControllerConfig) GetRoutingSuffix() string {
return wc.GetPropertyOrDefault(routingSuffix, defaultRoutingSuffix)
}

func (wc *ControllerConfig) GetPVCStorageClassName() *string {
return wc.GetProperty(workspacePVCStorageClassName)
}
Expand Down

0 comments on commit 4cdcd55

Please sign in to comment.