mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-11 01:41:54 -04:00
fix interface conversion panic
This commit is contained in:
parent
e86c8f9e53
commit
8b65621aeb
1 changed files with 4 additions and 4 deletions
|
|
@ -106,8 +106,8 @@ func (c *EndpointsConfig) Channel(source string) chan EndpointsUpdate {
|
|||
return endpointsCh
|
||||
}
|
||||
|
||||
func (c *EndpointsConfig) Config() map[string]map[string]api.Endpoints {
|
||||
return c.store.MergedState().(map[string]map[string]api.Endpoints)
|
||||
func (c *EndpointsConfig) Config() []api.Endpoints {
|
||||
return c.store.MergedState().([]api.Endpoints)
|
||||
}
|
||||
|
||||
type endpointsStore struct {
|
||||
|
|
@ -201,8 +201,8 @@ func (c *ServiceConfig) Channel(source string) chan ServiceUpdate {
|
|||
return serviceCh
|
||||
}
|
||||
|
||||
func (c *ServiceConfig) Config() map[string]map[string]api.Service {
|
||||
return c.store.MergedState().(map[string]map[string]api.Service)
|
||||
func (c *ServiceConfig) Config() []api.Service {
|
||||
return c.store.MergedState().([]api.Service)
|
||||
}
|
||||
|
||||
type serviceStore struct {
|
||||
|
|
|
|||
Loading…
Reference in a new issue