Merge pull request #10892 from nikhiljindal/beta1
Removing references to pre v1beta3 apis in code
This commit is contained in:
@@ -488,8 +488,6 @@ func (m *Master) init(c *Config) {
|
||||
"replicationControllers": controllerStorage,
|
||||
"services": service.NewStorage(m.serviceRegistry, m.nodeRegistry, m.endpointRegistry, serviceClusterIPAllocator, serviceNodePortAllocator, c.ClusterName),
|
||||
"endpoints": endpointsStorage,
|
||||
"minions": nodeStorage,
|
||||
"minions/status": nodeStatusStorage,
|
||||
"nodes": nodeStorage,
|
||||
"nodes/status": nodeStatusStorage,
|
||||
"events": event.NewStorage(eventRegistry),
|
||||
@@ -762,9 +760,6 @@ func (m *Master) defaultAPIGroupVersion() *apiserver.APIGroupVersion {
|
||||
func (m *Master) api_v1beta3() *apiserver.APIGroupVersion {
|
||||
storage := make(map[string]rest.Storage)
|
||||
for k, v := range m.storage {
|
||||
if k == "minions" || k == "minions/status" {
|
||||
continue
|
||||
}
|
||||
storage[strings.ToLower(k)] = v
|
||||
}
|
||||
version := m.defaultAPIGroupVersion()
|
||||
@@ -778,9 +773,6 @@ func (m *Master) api_v1beta3() *apiserver.APIGroupVersion {
|
||||
func (m *Master) api_v1() *apiserver.APIGroupVersion {
|
||||
storage := make(map[string]rest.Storage)
|
||||
for k, v := range m.storage {
|
||||
if k == "minions" || k == "minions/status" {
|
||||
continue
|
||||
}
|
||||
storage[strings.ToLower(k)] = v
|
||||
}
|
||||
version := m.defaultAPIGroupVersion()
|
||||
|
Reference in New Issue
Block a user