This is an automated email from the ASF dual-hosted git repository.
liuhan pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-rover.git
The following commit(s) were added to refs/heads/main by this push:
new e6e3507 Export the Kubernetes CLI (#97)
e6e3507 is described below
commit e6e35077de692598e179f2cb90b2b11c80970ca4
Author: mrproliu <[email protected]>
AuthorDate: Mon Aug 21 20:26:08 2023 +0800
Export the Kubernetes CLI (#97)
---
pkg/process/finders/kubernetes/finder.go | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/pkg/process/finders/kubernetes/finder.go
b/pkg/process/finders/kubernetes/finder.go
index c77b877..c39ff75 100644
--- a/pkg/process/finders/kubernetes/finder.go
+++ b/pkg/process/finders/kubernetes/finder.go
@@ -63,8 +63,8 @@ type ProcessFinder struct {
// k8s clients
k8sConfig *rest.Config
- cli *kubernetes.Clientset
registry *Registry
+ CLI *kubernetes.Clientset
// runtime config
namespaces []string
@@ -77,11 +77,11 @@ func (f *ProcessFinder) Init(ctx context.Context, conf
base.FinderBaseConfig, ma
}
f.conf = conf.(*Config)
f.k8sConfig = k8sConf
- f.cli = cli
+ f.CLI = cli
f.ctx, f.cancelCtx = context.WithCancel(ctx)
f.stopChan = make(chan struct{}, 1)
- f.registry = NewRegistry(f.cli, f.namespaces, f.conf.NodeName)
+ f.registry = NewRegistry(f.CLI, f.namespaces, f.conf.NodeName)
f.manager = manager
cache, err := lru.New(5000)
if err != nil {