Skip to content

Commit 1dbda51

Browse files
authored
Periodic dependency updates (#53)
* Periodic dependency updates * fix ctx
1 parent e38ce2b commit 1dbda51

File tree

6 files changed

+697
-204
lines changed

6 files changed

+697
-204
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- name: Setup Go
1212
uses: actions/setup-go@v1
1313
with:
14-
go-version: 1.16
14+
go-version: 1.18
1515
- name: GoReleaser
1616
uses: goreleaser/goreleaser-action@v1
1717
with:

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Setup Go
1313
uses: actions/setup-go@v1
1414
with:
15-
go-version: 1.16
15+
go-version: 1.18
1616
- name: GoReleaser
1717
uses: goreleaser/goreleaser-action@v1
1818
with:

cmd/kubectl-tree/query.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package main
22

33
import (
4+
"context"
45
"fmt"
56
"sync"
67
"time"
@@ -67,7 +68,7 @@ func queryAPI(client dynamic.Interface, api apiResource, allNs bool) ([]unstruct
6768
} else {
6869
intf = nintf
6970
}
70-
resp, err := intf.List(metav1.ListOptions{
71+
resp, err := intf.List(context.TODO(), metav1.ListOptions{
7172
Limit: 250,
7273
Continue: next,
7374
})

cmd/kubectl-tree/rootcmd.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ limitations under the License.
1616
package main
1717

1818
import (
19+
"context"
1920
"flag"
2021
"fmt"
2122
"os"
@@ -121,7 +122,7 @@ func run(command *cobra.Command, args []string) error {
121122
} else {
122123
ri = dyn.Resource(api.GroupVersionResource())
123124
}
124-
obj, err := ri.Get(name, metav1.GetOptions{})
125+
obj, err := ri.Get(context.TODO(), name, metav1.GetOptions{})
125126
if err != nil {
126127
return fmt.Errorf("failed to get %s/%s: %w", kind, name, err)
127128
}

go.mod

+76-23
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,84 @@
11
module github.com/ahmetb/kubectl-tree
22

3-
go 1.13
3+
go 1.18
44

55
require (
6-
cloud.google.com/go v0.43.0 // indirect
7-
github.com/emicklei/go-restful v2.9.6+incompatible // indirect
8-
github.com/evanphx/json-patch v4.5.0+incompatible // indirect
9-
github.com/fatih/color v1.7.0
10-
github.com/googleapis/gnostic v0.3.0 // indirect
6+
github.com/fatih/color v1.13.0
117
github.com/gosuri/uitable v0.0.4
12-
github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79 // indirect
13-
github.com/imdario/mergo v0.3.7 // indirect
14-
github.com/mattn/go-colorable v0.1.4 // indirect
15-
github.com/mattn/go-isatty v0.0.11 // indirect
16-
github.com/mattn/go-runewidth v0.0.7 // indirect
17-
github.com/spf13/cobra v0.0.5
8+
github.com/spf13/cobra v1.4.0
189
github.com/spf13/pflag v1.0.5
19-
golang.org/x/crypto v0.0.0-20191206172530-e9b2fee46413 // indirect
20-
golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553 // indirect
21-
golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6 // indirect
22-
golang.org/x/sys v0.0.0-20191128015809-6d18c012aee9 // indirect
23-
golang.org/x/time v0.0.0-20191024005414-555d28b269f0 // indirect
24-
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect
25-
gopkg.in/yaml.v2 v2.2.7 // indirect
26-
k8s.io/apimachinery v0.17.0
27-
k8s.io/cli-runtime v0.17.0
28-
k8s.io/client-go v0.17.0
10+
k8s.io/apimachinery v0.24.1
11+
k8s.io/cli-runtime v0.24.1
12+
k8s.io/client-go v0.24.1
2913
k8s.io/klog v1.0.0
30-
k8s.io/utils v0.0.0-20191218082557-f07c713de883 // indirect
14+
)
15+
16+
require (
17+
cloud.google.com/go v0.81.0 // indirect
18+
github.com/Azure/go-autorest v14.2.0+incompatible // indirect
19+
github.com/Azure/go-autorest/autorest v0.11.18 // indirect
20+
github.com/Azure/go-autorest/autorest/adal v0.9.13 // indirect
21+
github.com/Azure/go-autorest/autorest/date v0.3.0 // indirect
22+
github.com/Azure/go-autorest/logger v0.2.1 // indirect
23+
github.com/Azure/go-autorest/tracing v0.6.0 // indirect
24+
github.com/PuerkitoBio/purell v1.1.1 // indirect
25+
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
26+
github.com/davecgh/go-spew v1.1.1 // indirect
27+
github.com/emicklei/go-restful v2.9.5+incompatible // indirect
28+
github.com/evanphx/json-patch v4.12.0+incompatible // indirect
29+
github.com/form3tech-oss/jwt-go v3.2.3+incompatible // indirect
30+
github.com/go-errors/errors v1.0.1 // indirect
31+
github.com/go-logr/logr v1.2.0 // indirect
32+
github.com/go-openapi/jsonpointer v0.19.5 // indirect
33+
github.com/go-openapi/jsonreference v0.19.5 // indirect
34+
github.com/go-openapi/swag v0.19.14 // indirect
35+
github.com/gogo/protobuf v1.3.2 // indirect
36+
github.com/golang/protobuf v1.5.2 // indirect
37+
github.com/google/btree v1.0.1 // indirect
38+
github.com/google/gnostic v0.5.7-v3refs // indirect
39+
github.com/google/gofuzz v1.1.0 // indirect
40+
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
41+
github.com/google/uuid v1.1.2 // indirect
42+
github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7 // indirect
43+
github.com/imdario/mergo v0.3.5 // indirect
44+
github.com/inconshreveable/mousetrap v1.0.0 // indirect
45+
github.com/josharian/intern v1.0.0 // indirect
46+
github.com/json-iterator/go v1.1.12 // indirect
47+
github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de // indirect
48+
github.com/mailru/easyjson v0.7.6 // indirect
49+
github.com/mattn/go-colorable v0.1.9 // indirect
50+
github.com/mattn/go-isatty v0.0.14 // indirect
51+
github.com/mattn/go-runewidth v0.0.13 // indirect
52+
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
53+
github.com/modern-go/reflect2 v1.0.2 // indirect
54+
github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00 // indirect
55+
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
56+
github.com/peterbourgon/diskv v2.0.1+incompatible // indirect
57+
github.com/pkg/errors v0.9.1 // indirect
58+
github.com/pmezard/go-difflib v1.0.0 // indirect
59+
github.com/rivo/uniseg v0.2.0 // indirect
60+
github.com/stretchr/testify v1.7.0 // indirect
61+
github.com/xlab/treeprint v0.0.0-20181112141820-a009c3971eca // indirect
62+
go.starlark.net v0.0.0-20200306205701-8dd3e2ee1dd5 // indirect
63+
golang.org/x/crypto v0.0.0-20220214200702-86341886e292 // indirect
64+
golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd // indirect
65+
golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8 // indirect
66+
golang.org/x/sys v0.0.0-20220209214540-3681064d5158 // indirect
67+
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect
68+
golang.org/x/text v0.3.7 // indirect
69+
golang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect
70+
google.golang.org/appengine v1.6.7 // indirect
71+
google.golang.org/protobuf v1.27.1 // indirect
72+
gopkg.in/inf.v0 v0.9.1 // indirect
73+
gopkg.in/yaml.v2 v2.4.0 // indirect
74+
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
75+
k8s.io/api v0.24.1 // indirect
76+
k8s.io/klog/v2 v2.60.1 // indirect
77+
k8s.io/kube-openapi v0.0.0-20220328201542-3ee0da9b0b42 // indirect
78+
k8s.io/utils v0.0.0-20220210201930-3a6ce19ff2f9 // indirect
79+
sigs.k8s.io/json v0.0.0-20211208200746-9f7c6b3444d2 // indirect
80+
sigs.k8s.io/kustomize/api v0.11.4 // indirect
81+
sigs.k8s.io/kustomize/kyaml v0.13.6 // indirect
82+
sigs.k8s.io/structured-merge-diff/v4 v4.2.1 // indirect
83+
sigs.k8s.io/yaml v1.2.0 // indirect
3184
)

0 commit comments

Comments
 (0)