Skip to content

Commit

Permalink
[operator] Add k8s client factory
Browse files Browse the repository at this point in the history
  • Loading branch information
mfordjody committed Dec 8, 2024
1 parent f6643bc commit fe40b64
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pkg/kube/client_factory.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package kube

import "k8s.io/client-go/tools/clientcmd"

type clientFactory struct {
clientConfig clientcmd.ClientConfig
}

func newClientFactory(clientConfig clientcmd.ClientConfig, diskCache bool) *clientFactory {
cf := &clientFactory{clientConfig: clientConfig}
return cf
}

0 comments on commit fe40b64

Please sign in to comment.