mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-10-22 06:59:03 +00:00
Populate 'Kind' field in all API types being returned.
This commit is contained in:
@@ -60,11 +60,15 @@ func GetServiceEnvironmentVariables(registry ServiceRegistry, machine string) ([
|
||||
}
|
||||
|
||||
func (sr *ServiceRegistryStorage) List(*url.URL) (interface{}, error) {
|
||||
return sr.registry.ListServices()
|
||||
list, err := sr.registry.ListServices()
|
||||
list.Kind = "cluster#serviceList"
|
||||
return list, err
|
||||
}
|
||||
|
||||
func (sr *ServiceRegistryStorage) Get(id string) (interface{}, error) {
|
||||
return sr.registry.GetService(id)
|
||||
service, err := sr.registry.GetService(id)
|
||||
service.Kind = "cluster#service"
|
||||
return service, err
|
||||
}
|
||||
|
||||
func (sr *ServiceRegistryStorage) Delete(id string) error {
|
||||
|
Reference in New Issue
Block a user