mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
Merge pull request #3574 from mikedanese/proxy-config-panic
fix interface conversion panic
This commit is contained in:
commit
ee0ba6c922
@ -106,8 +106,8 @@ func (c *EndpointsConfig) Channel(source string) chan EndpointsUpdate {
|
|||||||
return endpointsCh
|
return endpointsCh
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *EndpointsConfig) Config() map[string]map[string]api.Endpoints {
|
func (c *EndpointsConfig) Config() []api.Endpoints {
|
||||||
return c.store.MergedState().(map[string]map[string]api.Endpoints)
|
return c.store.MergedState().([]api.Endpoints)
|
||||||
}
|
}
|
||||||
|
|
||||||
type endpointsStore struct {
|
type endpointsStore struct {
|
||||||
@ -201,8 +201,8 @@ func (c *ServiceConfig) Channel(source string) chan ServiceUpdate {
|
|||||||
return serviceCh
|
return serviceCh
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *ServiceConfig) Config() map[string]map[string]api.Service {
|
func (c *ServiceConfig) Config() []api.Service {
|
||||||
return c.store.MergedState().(map[string]map[string]api.Service)
|
return c.store.MergedState().([]api.Service)
|
||||||
}
|
}
|
||||||
|
|
||||||
type serviceStore struct {
|
type serviceStore struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user