Skip to content

Commit

Permalink
fix(platform): add node/pods and replicationcontrollers/pods (#2266)
Browse files Browse the repository at this point in the history
Co-authored-by: xdonggao <xdonggao@tencent.com>
  • Loading branch information
GaoXiaodong and xdonggao committed Apr 21, 2023
1 parent 807a02a commit dcb7e44
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/platform/proxy/core/rest/rest.go
Expand Up @@ -105,6 +105,7 @@ func (c LegacyRESTStorageProvider) NewLegacyRESTStorage(apiResourceConfigSource

if resource := "replicationcontrollers"; apiResourceConfigSource.ResourceEnabled(corev1.SchemeGroupVersion.WithResource(resource)) {
storage[resource] = replicationControllerStorage.ReplicationController
storage[resource+"/pods"] = replicationControllerStorage.Pods
storage[resource+"/status"] = replicationControllerStorage.Status
storage[resource+"/scale"] = replicationControllerStorage.Scale
storage[resource+"/events"] = replicationControllerStorage.Events
Expand All @@ -122,6 +123,7 @@ func (c LegacyRESTStorageProvider) NewLegacyRESTStorage(apiResourceConfigSource

if resource := "nodes"; apiResourceConfigSource.ResourceEnabled(corev1.SchemeGroupVersion.WithResource(resource)) {
storage[resource] = nodeStorage.Node
storage[resource+"/pods"] = nodeStorage.Pods
storage[resource+"/status"] = nodeStorage.Status
}

Expand Down

0 comments on commit dcb7e44

Please sign in to comment.