Skip to content

Commit

Permalink
Remove unnecessary LIST calls for k8s pods
Browse files Browse the repository at this point in the history
Signed-off-by: Davanum Srinivas <[email protected]>
  • Loading branch information
dims committed Jan 9, 2025
1 parent da53e1c commit cb92e6d
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 337 deletions.
5 changes: 0 additions & 5 deletions internal/k8sCommon/k8sclient/clientset.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ type K8sClient struct {
ClientSet *kubernetes.Clientset

Ep EpClient
Pod PodClient
Node NodeClient

ReplicaSet ReplicaSetClient
Expand Down Expand Up @@ -65,7 +64,6 @@ func (c *K8sClient) init() {
}
c.ClientSet = client
c.Ep = new(epClient)
c.Pod = new(podClient)
c.Node = new(nodeClient)
c.ReplicaSet = new(replicaSetClient)
c.inited = true
Expand All @@ -80,9 +78,6 @@ func (c *K8sClient) shutdown() {
if c.Ep != nil {
c.Ep.Shutdown()
}
if c.Pod != nil {
c.Pod.Shutdown()
}
if c.Node != nil {
c.Node.Shutdown()
}
Expand Down
134 changes: 0 additions & 134 deletions internal/k8sCommon/k8sclient/pod.go

This file was deleted.

13 changes: 0 additions & 13 deletions internal/k8sCommon/k8sclient/pod_info.go

This file was deleted.

185 changes: 0 additions & 185 deletions internal/k8sCommon/k8sclient/pod_test.go

This file was deleted.

0 comments on commit cb92e6d

Please sign in to comment.