add goimports format action (#3630)

Signed-off-by: Jeff <jeffzhang@yunify.com>
This commit is contained in:
zryfish
2021-03-30 13:44:24 +08:00
committed by GitHub
parent 40e3751e43
commit ac275b6e98
561 changed files with 1713 additions and 863 deletions

View File

@@ -20,12 +20,14 @@ import (
"bytes"
"context"
"fmt"
"helm.sh/helm/v3/pkg/getter"
"kubesphere.io/kubesphere/pkg/apis/application/v1alpha1"
"kubesphere.io/kubesphere/pkg/simple/client/s3"
"net/url"
"strings"
"time"
"helm.sh/helm/v3/pkg/getter"
"kubesphere.io/kubesphere/pkg/apis/application/v1alpha1"
"kubesphere.io/kubesphere/pkg/simple/client/s3"
)
func parseS3Url(parse *url.URL) (region, endpoint, bucket, path string) {

View File

@@ -20,11 +20,12 @@ import (
"bytes"
"encoding/json"
"fmt"
"helm.sh/helm/v3/pkg/repo"
"k8s.io/klog"
"strings"
"time"
"helm.sh/helm/v3/pkg/repo"
"k8s.io/klog"
"helm.sh/helm/v3/pkg/chart/loader"
)

View File

@@ -23,16 +23,18 @@ import (
"encoding/base64"
"encoding/json"
"fmt"
helmrepo "helm.sh/helm/v3/pkg/repo"
"io"
"io/ioutil"
"strings"
"time"
helmrepo "helm.sh/helm/v3/pkg/repo"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"sigs.k8s.io/yaml"
"kubesphere.io/kubesphere/pkg/apis/application/v1alpha1"
"kubesphere.io/kubesphere/pkg/constants"
"kubesphere.io/kubesphere/pkg/utils/idutils"
"sigs.k8s.io/yaml"
"strings"
"time"
)
const IndexYaml = "index.yaml"

View File

@@ -19,9 +19,10 @@ package helmrepoindex
import (
"context"
"fmt"
"kubesphere.io/kubesphere/pkg/apis/application/v1alpha1"
"strings"
"testing"
"kubesphere.io/kubesphere/pkg/apis/application/v1alpha1"
)
func TestLoadRepo(t *testing.T) {