MCPcopy Create free account
hub / github.com/devfile/devworkspace-operator / getMainUrl

Function getMainUrl

controllers/workspace/status.go:232–241  ·  view source on GitHub ↗
(exposedEndpoints map[string]v1alpha1.ExposedEndpointList)

Source from the content-addressed store, hash-verified

230}
231
232func getMainUrl(exposedEndpoints map[string]v1alpha1.ExposedEndpointList) string {
233 for _, endpoints := range exposedEndpoints {
234 for _, endpoint := range endpoints {
235 if endpoint.Attributes.GetString(string(v1alpha1.TypeEndpointAttribute), nil) == string(v1alpha1.MainEndpointType) {
236 return endpoint.Url
237 }
238 }
239 }
240 return ""
241}
242
243func getInfoMessage(workspace *common.DevWorkspaceWithConfig, status *currentStatus) string {
244 // Check for errors and failure

Callers 1

syncWorkspaceMainURLFunction · 0.85

Calls 1

GetStringMethod · 0.80

Tested by

no test coverage detected