Skip to content

Commit

Permalink
remove redundant
Browse files Browse the repository at this point in the history
  • Loading branch information
omrikiei committed Dec 29, 2024
1 parent 9ea51a0 commit 1b59f7b
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions pkg/k8s/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,31 +20,3 @@ type Clients struct {
Pods v12.PodInterface
Services v12.ServiceInterface
}

func getDeploymentsClient() v1.DeploymentInterface {
clientMutex.RLock()
defer clientMutex.RUnlock()
return deploymentsClient
}

func getServicesClient() v12.ServiceInterface {
clientMutex.RLock()
defer clientMutex.RUnlock()
return svcClient
}

func NewClients(deployments v1.DeploymentInterface, pods v12.PodInterface, services v12.ServiceInterface) *Clients {
return &Clients{
Deployments: deployments,
Pods: pods,
Services: services,
}
}

func setClients(deployments v1.DeploymentInterface, pods v12.PodInterface, services v12.ServiceInterface) {
clientMutex.Lock()
defer clientMutex.Unlock()
deploymentsClient = deployments
podsClient = pods
svcClient = services
}

0 comments on commit 1b59f7b

Please sign in to comment.