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 68bf1dd8 [operator] Add CLI client with revision
68bf1dd8 is described below
commit 68bf1dd8a84293ad3242a3ee9f676b2a80812337
Author: mfordjody <[email protected]>
AuthorDate: Sun Dec 8 10:58:25 2024 +0800
[operator] Add CLI client with revision
---
dubboctl/pkg/cli/context.go | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/dubboctl/pkg/cli/context.go b/dubboctl/pkg/cli/context.go
index 82107a0b..f3a531f1 100644
--- a/dubboctl/pkg/cli/context.go
+++ b/dubboctl/pkg/cli/context.go
@@ -12,6 +12,7 @@ type instance struct {
type Context interface {
CLIClient() (kube.CLIClient, error)
+ CLIClientWithRevision(rev string) (kube.CLIClient, error)
}
func NewCLIContext(rootFlags *RootFlags) Context {
@@ -31,3 +32,14 @@ func NewCLIContext(rootFlags *RootFlags) Context {
func (i *instance) CLIClient() (kube.CLIClient, error) {
return nil, nil
}
+
+func (i *instance) CLIClientWithRevision(rev string) (kube.CLIClient, error) {
+ if i.client == nil {
+ i.client = make(map[string]kube.CLIClient)
+ }
+
+}
+
+func newKubeClientWithRevision(kubeconfig, context, revision string)
(kube.CLIClient, error) {
+ return nil, nil
+}