Skip to content

Commit a4cfa1b

Browse files
committed
Upgrade dependencies
1 parent 17ecce0 commit a4cfa1b

File tree

7 files changed

+722
-109
lines changed

7 files changed

+722
-109
lines changed

cmd/cmdauth.go

+1
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,6 @@ func NewAuthCommand(streams genericclioptions.IOStreams) *cobra.Command {
3232
_, err = fmt.Fprintln(streams.Out, string(b))
3333
return err
3434
}}
35+
3536
return &cmd
3637
}

cmd/cmdgetcredentials.go

+5
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ func (g *getCredentialsCommand) runE(cmd *cobra.Command, _ []string) error {
6262
}
6363

6464
options := clientcmd.NewDefaultPathOptions()
65+
6566
cfg, err := options.GetStartingConfig()
6667
if err != nil {
6768
return err
@@ -76,11 +77,13 @@ func (g *getCredentialsCommand) runE(cmd *cobra.Command, _ []string) error {
7677
// Maintain compatibility with gcloud's default cluster names.
7778
clusterName, _ := pkg.DefaultContextName(g.project, cluster)
7879
config.UpsertCluster(cfg, clusterName, cluster)
80+
7981
if g.shouldCreateContexts() {
8082
contextName, err := contextNameFactory.For(g.project, cluster)
8183
if err != nil {
8284
return err
8385
}
86+
8487
config.UpsertContext(cfg, contextName, clusterName, "kubectl-gke")
8588
}
8689
}
@@ -90,10 +93,12 @@ func (g *getCredentialsCommand) runE(cmd *cobra.Command, _ []string) error {
9093
if err != nil {
9194
return err
9295
}
96+
9397
authCmd, _, err := cmd.Root().Find([]string{authCmdName})
9498
if err != nil {
9599
return err
96100
}
101+
97102
// CommandPath includes name of the root command, which is not used in the invocation.
98103
args := strings.Replace(authCmd.CommandPath(), cmd.Root().Name()+" ", "", 1)
99104

go.mod

+69-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,74 @@
11
module github.com/fsommar/kubectl-gke
22

3-
go 1.16
3+
go 1.17
44

55
require (
6-
github.com/spf13/cobra v1.1.1
7-
golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43
8-
google.golang.org/api v0.35.0
9-
k8s.io/apimachinery v0.19.4
10-
k8s.io/cli-runtime v0.19.4
11-
k8s.io/client-go v0.19.4
6+
github.com/go-logr/logr v1.2.0
7+
github.com/spf13/cobra v1.3.0
8+
golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8
9+
google.golang.org/api v0.63.0
10+
k8s.io/apimachinery v0.23.1
11+
k8s.io/cli-runtime v0.23.1
12+
k8s.io/client-go v0.23.1
13+
k8s.io/klog/v2 v2.30.0
14+
)
15+
16+
require (
17+
cloud.google.com/go v0.99.0 // indirect
18+
github.com/PuerkitoBio/purell v1.1.1 // indirect
19+
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
20+
github.com/davecgh/go-spew v1.1.1 // indirect
21+
github.com/evanphx/json-patch v4.12.0+incompatible // indirect
22+
github.com/go-errors/errors v1.0.1 // indirect
23+
github.com/go-openapi/jsonpointer v0.19.5 // indirect
24+
github.com/go-openapi/jsonreference v0.19.5 // indirect
25+
github.com/go-openapi/swag v0.19.14 // indirect
26+
github.com/gogo/protobuf v1.3.2 // indirect
27+
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
28+
github.com/golang/protobuf v1.5.2 // indirect
29+
github.com/google/btree v1.0.1 // indirect
30+
github.com/google/go-cmp v0.5.6 // indirect
31+
github.com/google/gofuzz v1.1.0 // indirect
32+
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
33+
github.com/google/uuid v1.1.2 // indirect
34+
github.com/googleapis/gax-go/v2 v2.1.1 // indirect
35+
github.com/googleapis/gnostic v0.5.5 // indirect
36+
github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7 // indirect
37+
github.com/imdario/mergo v0.3.5 // indirect
38+
github.com/inconshreveable/mousetrap v1.0.0 // indirect
39+
github.com/josharian/intern v1.0.0 // indirect
40+
github.com/json-iterator/go v1.1.12 // indirect
41+
github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de // indirect
42+
github.com/mailru/easyjson v0.7.6 // indirect
43+
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
44+
github.com/modern-go/reflect2 v1.0.2 // indirect
45+
github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00 // indirect
46+
github.com/peterbourgon/diskv v2.0.1+incompatible // indirect
47+
github.com/pkg/errors v0.9.1 // indirect
48+
github.com/pmezard/go-difflib v1.0.0 // indirect
49+
github.com/spf13/pflag v1.0.5 // indirect
50+
github.com/stretchr/testify v1.7.0 // indirect
51+
github.com/xlab/treeprint v0.0.0-20181112141820-a009c3971eca // indirect
52+
go.opencensus.io v0.23.0 // indirect
53+
go.starlark.net v0.0.0-20200306205701-8dd3e2ee1dd5 // indirect
54+
golang.org/x/net v0.0.0-20211209124913-491a49abca63 // indirect
55+
golang.org/x/sys v0.0.0-20211210111614-af8b64212486 // indirect
56+
golang.org/x/term v0.0.0-20210615171337-6886f2dfbf5b // indirect
57+
golang.org/x/text v0.3.7 // indirect
58+
golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac // indirect
59+
google.golang.org/appengine v1.6.7 // indirect
60+
google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa // indirect
61+
google.golang.org/grpc v1.42.0 // indirect
62+
google.golang.org/protobuf v1.27.1 // indirect
63+
gopkg.in/inf.v0 v0.9.1 // indirect
64+
gopkg.in/yaml.v2 v2.4.0 // indirect
65+
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
66+
k8s.io/api v0.23.1 // indirect
67+
k8s.io/kube-openapi v0.0.0-20211115234752-e816edb12b65 // indirect
68+
k8s.io/utils v0.0.0-20210930125809-cb0fa318a74b // indirect
69+
sigs.k8s.io/json v0.0.0-20211020170558-c049b76a60c6 // indirect
70+
sigs.k8s.io/kustomize/api v0.10.1 // indirect
71+
sigs.k8s.io/kustomize/kyaml v0.13.0 // indirect
72+
sigs.k8s.io/structured-merge-diff/v4 v4.1.2 // indirect
73+
sigs.k8s.io/yaml v1.2.0 // indirect
1274
)

0 commit comments

Comments
 (0)