This is an automated email from the ASF dual-hosted git repository.

albumenj pushed a commit to branch refactor-with-go
in repository https://gitbox.apache.org/repos/asf/dubbo-admin.git


The following commit(s) were added to refs/heads/refactor-with-go by this push:
     new e44e59ce Fix lint
e44e59ce is described below

commit e44e59ce0276be2ab56009f36395516766b228c7
Author: Albumen Kevin <[email protected]>
AuthorDate: Mon May 22 20:15:17 2023 +0800

    Fix lint
---
 .../internal/apis/dubbo.apache.org/v1alpha1/types.go        | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/pkg/dubboctl/internal/apis/dubbo.apache.org/v1alpha1/types.go 
b/pkg/dubboctl/internal/apis/dubbo.apache.org/v1alpha1/types.go
index 3f0e78f2..237c8756 100644
--- a/pkg/dubboctl/internal/apis/dubbo.apache.org/v1alpha1/types.go
+++ b/pkg/dubboctl/internal/apis/dubbo.apache.org/v1alpha1/types.go
@@ -42,8 +42,7 @@ func (do *DubboConfig) GetProfile() string {
        return ""
 }
 
-type DubboConfigStatus struct {
-}
+type DubboConfigStatus struct{}
 
 // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
 
@@ -281,7 +280,7 @@ func (in *GrafanaSpec) DeepCopyInto(out *GrafanaSpec) {
        if in == nil {
                return
        }
-       var spec GrafanaSpec
+       var spec GrafanaSpec = map[string]any{}
        for key, val := range *in {
                spec[key] = val
        }
@@ -400,7 +399,7 @@ func (in *ZookeeperSpec) DeepCopyInto(out *ZookeeperSpec) {
        if in == nil {
                return
        }
-       var spec ZookeeperSpec
+       var spec ZookeeperSpec = map[string]any{}
        for key, val := range *in {
                spec[key] = val
        }
@@ -413,7 +412,7 @@ func (in *PrometheusSpec) DeepCopyInto(out *PrometheusSpec) 
{
        if in == nil {
                return
        }
-       var spec PrometheusSpec
+       var spec PrometheusSpec = map[string]any{}
        for key, val := range *in {
                spec[key] = val
        }
@@ -426,7 +425,7 @@ func (in *SkywalkingSpec) DeepCopyInto(out *SkywalkingSpec) 
{
        if in == nil {
                return
        }
-       var spec SkywalkingSpec
+       var spec SkywalkingSpec = map[string]any{}
        for key, val := range *in {
                spec[key] = val
        }
@@ -439,7 +438,7 @@ func (in *ZipkinSpec) DeepCopyInto(out *ZipkinSpec) {
        if in == nil {
                return
        }
-       var spec ZipkinSpec
+       var spec ZipkinSpec = map[string]any{}
        for key, val := range *in {
                spec[key] = val
        }

Reply via email to