code: func (up *tenantURLProvider) GetEnvironmentMapping() map[string]string {
  	result := make(map[string]string)
  	// Exclude internal namespaces where the user cannot deploy applications
  
  	// Deployments API will receive requests by environment name (e.g. "run", "stage").
  	// These names correspond to the "type" attribute in Namespaces.
  	for envNS, attr := range up.namespaces {
  		envName := attr.Type
  		if envName == nil || len(*envName) == 0 {
  			log.Error(nil, map[string]interface{}{
  				"namespace": envNS,
  			}, "namespace has no type")
  		} else {
  			result[*envName] = envNS
  		}
  	}
  	return result
  }
docs: // GetEnvironmentMapping returns a map whose keys are environment names, and values are the Kubernetes namespaces
  // that represent those environments