This is an automated email from the ASF dual-hosted git repository.
zhongxjian pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-kubernetes.git
The following commit(s) were added to refs/heads/master by this push:
new fe40b648 [operator] Add k8s client factory
fe40b648 is described below
commit fe40b648edf32de1dfdf0fac770f83093e9d0b7a
Author: mfordjody <[email protected]>
AuthorDate: Sun Dec 8 11:59:00 2024 +0800
[operator] Add k8s client factory
---
pkg/kube/client_factory.go | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/pkg/kube/client_factory.go b/pkg/kube/client_factory.go
new file mode 100644
index 00000000..c2d89ddb
--- /dev/null
+++ b/pkg/kube/client_factory.go
@@ -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
+}