Skip to content

Commit 0ed3eac

Browse files
authored
Merge pull request #671 from cybozu-go/cke-tools-1.27
Update dependencies
2 parents 8f156a8 + ab32d2b commit 0ed3eac

File tree

13 files changed

+236
-209
lines changed

13 files changed

+236
-209
lines changed

.github/workflows/main.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
name: Build CKE
1212
runs-on: ubuntu-22.04
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515
- uses: actions/setup-go@v4
1616
with:
1717
go-version-file: go.mod
@@ -31,7 +31,7 @@ jobs:
3131
SUITE: ${{ matrix.suite }}
3232
CLUSTER: "cke-cluster.yml"
3333
steps:
34-
- uses: actions/checkout@v3
34+
- uses: actions/checkout@v4
3535
- uses: actions/setup-go@v4
3636
with:
3737
go-version-file: go.mod
@@ -97,7 +97,7 @@ jobs:
9797
name: Compose test
9898
runs-on: ubuntu-22.04
9999
steps:
100-
- uses: actions/checkout@v3
100+
- uses: actions/checkout@v4
101101
- uses: actions/setup-go@v4
102102
with:
103103
go-version-file: go.mod

.github/workflows/release-images.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
name: Run sonobuoy
1212
runs-on: ubuntu-22.04
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515
- uses: actions/setup-go@v4
1616
with:
1717
go-version-file: go.mod
@@ -42,7 +42,7 @@ jobs:
4242
needs: sonobuoy
4343
runs-on: ubuntu-22.04
4444
steps:
45-
- uses: actions/checkout@v3
45+
- uses: actions/checkout@v4
4646
- uses: actions/setup-go@v4
4747
with:
4848
go-version-file: go.mod
@@ -68,7 +68,7 @@ jobs:
6868
image: quay.io/cybozu/golang:1.20-jammy
6969
needs: release-cke-image
7070
steps:
71-
- uses: actions/checkout@v3
71+
- uses: actions/checkout@v4
7272
- name: Download sonobuoy test
7373
uses: actions/download-artifact@v3
7474
with:

.github/workflows/release-tools.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
name: Release CKE tools image
99
runs-on: ubuntu-22.04
1010
steps:
11-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@v4
1212
- uses: actions/setup-go@v4
1313
with:
1414
go-version-file: go.mod

.github/workflows/sonobuoy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
name: Run sonobuoy
77
runs-on: ubuntu-22.04
88
steps:
9-
- uses: actions/checkout@v3
9+
- uses: actions/checkout@v4
1010
- uses: actions/setup-go@v4
1111
with:
1212
go-version-file: go.mod

DEVELOP.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ How to develop CKE
33

44
## Go environment
55

6-
Use Go 1.17 or higher.
6+
Use Go 1.21 or higher.
77

88
## Starting development for a new Kubernetes minor release
99

cluster_test.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
proxyv1alpha1 "k8s.io/kube-proxy/config/v1alpha1"
1212
schedulerv1 "k8s.io/kube-scheduler/config/v1"
1313
kubeletv1beta1 "k8s.io/kubelet/config/v1beta1"
14-
"k8s.io/utils/pointer"
14+
"k8s.io/utils/ptr"
1515
"sigs.k8s.io/yaml"
1616
)
1717

@@ -154,7 +154,7 @@ rules:
154154
t.Error(`c.Options.ControllerManager.ExtraEnvvar["env1"] != "val1"`)
155155
}
156156
kubeSchedulerConfig, err := c.Options.Scheduler.MergeConfig(&schedulerv1.KubeSchedulerConfiguration{
157-
Parallelism: pointer.Int32(999),
157+
Parallelism: ptr.To(int32(999)),
158158
})
159159
if err != nil {
160160
t.Fatal(err)
@@ -858,63 +858,63 @@ func testClusterValidateReboot(t *testing.T) {
858858
{
859859
name: "zero eviction_timeout_seconds",
860860
reboot: Reboot{
861-
EvictionTimeoutSeconds: pointer.Int(0),
861+
EvictionTimeoutSeconds: ptr.To(0),
862862
},
863863
wantErr: true,
864864
},
865865
{
866866
name: "positive eviction_timeout_seconds",
867867
reboot: Reboot{
868-
EvictionTimeoutSeconds: pointer.Int(1),
868+
EvictionTimeoutSeconds: ptr.To(1),
869869
},
870870
wantErr: false,
871871
},
872872
{
873873
name: "negative eviction_timeout_seconds",
874874
reboot: Reboot{
875-
EvictionTimeoutSeconds: pointer.Int(-1),
875+
EvictionTimeoutSeconds: ptr.To(-1),
876876
},
877877
wantErr: true,
878878
},
879879
{
880880
name: "zero command_timeout_seconds",
881881
reboot: Reboot{
882-
CommandTimeoutSeconds: pointer.Int(0),
882+
CommandTimeoutSeconds: ptr.To(0),
883883
},
884884
wantErr: false,
885885
},
886886
{
887887
name: "positive command_timeout_seconds",
888888
reboot: Reboot{
889-
CommandTimeoutSeconds: pointer.Int(1),
889+
CommandTimeoutSeconds: ptr.To(1),
890890
},
891891
wantErr: false,
892892
},
893893
{
894894
name: "negative command_timeout_seconds",
895895
reboot: Reboot{
896-
CommandTimeoutSeconds: pointer.Int(-1),
896+
CommandTimeoutSeconds: ptr.To(-1),
897897
},
898898
wantErr: true,
899899
},
900900
{
901901
name: "zero max_concurrent_reboots",
902902
reboot: Reboot{
903-
MaxConcurrentReboots: pointer.Int(0),
903+
MaxConcurrentReboots: ptr.To(0),
904904
},
905905
wantErr: true,
906906
},
907907
{
908908
name: "positive max_concurrent_reboots",
909909
reboot: Reboot{
910-
MaxConcurrentReboots: pointer.Int(1),
910+
MaxConcurrentReboots: ptr.To(1),
911911
},
912912
wantErr: false,
913913
},
914914
{
915915
name: "negative max_concurrent_reboots",
916916
reboot: Reboot{
917-
MaxConcurrentReboots: pointer.Int(-1),
917+
MaxConcurrentReboots: ptr.To(-1),
918918
},
919919
wantErr: true,
920920
},

go.mod

Lines changed: 56 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
11
module github.com/cybozu-go/cke
22

3-
go 1.20
3+
go 1.21
44

55
require (
6-
github.com/99designs/gqlgen v0.17.34
6+
github.com/99designs/gqlgen v0.17.40
77
github.com/containernetworking/cni v1.1.2
8-
github.com/cybozu-go/etcdutil v1.6.4
8+
github.com/cybozu-go/etcdutil v1.6.6
99
github.com/cybozu-go/log v1.7.0
10-
github.com/cybozu-go/netutil v1.4.4
10+
github.com/cybozu-go/netutil v1.4.6
1111
github.com/cybozu-go/well v1.11.2
12-
github.com/google/go-cmp v0.5.9
13-
github.com/hashicorp/vault/api v1.9.2
14-
github.com/onsi/ginkgo/v2 v2.11.0
15-
github.com/onsi/gomega v1.27.8
12+
github.com/google/go-cmp v0.6.0
13+
github.com/hashicorp/vault/api v1.10.0
14+
github.com/onsi/ginkgo/v2 v2.13.1
15+
github.com/onsi/gomega v1.30.0
1616
github.com/opencontainers/selinux v1.11.0
17-
github.com/prometheus/client_golang v1.16.0
18-
github.com/prometheus/client_model v0.4.0
19-
github.com/prometheus/common v0.44.0
20-
github.com/spf13/cobra v1.7.0
17+
github.com/prometheus/client_golang v1.17.0
18+
github.com/prometheus/client_model v0.5.0
19+
github.com/prometheus/common v0.45.0
20+
github.com/spf13/cobra v1.8.0
2121
github.com/spf13/pflag v1.0.5
22-
github.com/vektah/gqlparser/v2 v2.5.6
23-
go.etcd.io/etcd/api/v3 v3.5.9
24-
go.etcd.io/etcd/client/v3 v3.5.9
25-
go.etcd.io/etcd/etcdutl/v3 v3.5.9
22+
github.com/vektah/gqlparser/v2 v2.5.10
23+
go.etcd.io/etcd/api/v3 v3.5.10
24+
go.etcd.io/etcd/client/v3 v3.5.10
25+
go.etcd.io/etcd/etcdutl/v3 v3.5.10
2626
go.etcd.io/gofail v0.1.0
27-
golang.org/x/crypto v0.11.0
28-
golang.org/x/term v0.10.0
29-
k8s.io/api v0.26.6
30-
k8s.io/apimachinery v0.26.6
31-
k8s.io/apiserver v0.26.6
32-
k8s.io/client-go v0.26.6
33-
k8s.io/kube-proxy v0.26.6
34-
k8s.io/kube-scheduler v0.26.6
35-
k8s.io/kubelet v0.26.6
36-
k8s.io/utils v0.0.0-20230505201702-9f6742963106
37-
sigs.k8s.io/yaml v1.3.0
27+
golang.org/x/crypto v0.15.0
28+
golang.org/x/term v0.14.0
29+
k8s.io/api v0.27.8
30+
k8s.io/apimachinery v0.27.8
31+
k8s.io/apiserver v0.27.8
32+
k8s.io/client-go v0.27.8
33+
k8s.io/kube-proxy v0.27.8
34+
k8s.io/kube-scheduler v0.27.8
35+
k8s.io/kubelet v0.27.8
36+
k8s.io/utils v0.0.0-20230726121419-3b25d923346b
37+
sigs.k8s.io/yaml v1.4.0
3838
)
3939

4040
require (
@@ -51,11 +51,11 @@ require (
5151
github.com/emicklei/go-restful/v3 v3.9.0 // indirect
5252
github.com/fsnotify/fsnotify v1.6.0 // indirect
5353
github.com/go-jose/go-jose/v3 v3.0.0 // indirect
54-
github.com/go-logr/logr v1.2.4 // indirect
54+
github.com/go-logr/logr v1.3.0 // indirect
5555
github.com/go-logr/stdr v1.2.2 // indirect
56-
github.com/go-openapi/jsonpointer v0.19.5 // indirect
57-
github.com/go-openapi/jsonreference v0.20.0 // indirect
58-
github.com/go-openapi/swag v0.19.14 // indirect
56+
github.com/go-openapi/jsonpointer v0.19.6 // indirect
57+
github.com/go-openapi/jsonreference v0.20.1 // indirect
58+
github.com/go-openapi/swag v0.22.3 // indirect
5959
github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 // indirect
6060
github.com/gogo/protobuf v1.3.2 // indirect
6161
github.com/golang-jwt/jwt/v4 v4.5.0 // indirect
@@ -64,6 +64,7 @@ require (
6464
github.com/google/gnostic v0.5.7-v3refs // indirect
6565
github.com/google/gofuzz v1.2.0 // indirect
6666
github.com/google/pprof v0.0.0-20230705174524-200ffdc848b8 // indirect
67+
github.com/google/uuid v1.3.1 // indirect
6768
github.com/gorilla/websocket v1.5.0 // indirect
6869
github.com/hashicorp/errwrap v1.1.0 // indirect
6970
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
@@ -81,16 +82,17 @@ require (
8182
github.com/josharian/intern v1.0.0 // indirect
8283
github.com/json-iterator/go v1.1.12 // indirect
8384
github.com/magiconair/properties v1.8.7 // indirect
84-
github.com/mailru/easyjson v0.7.6 // indirect
85-
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
85+
github.com/mailru/easyjson v0.7.7 // indirect
86+
github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 // indirect
8687
github.com/mitchellh/go-homedir v1.1.0 // indirect
8788
github.com/mitchellh/mapstructure v1.5.0 // indirect
8889
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
8990
github.com/modern-go/reflect2 v1.0.2 // indirect
9091
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
91-
github.com/pelletier/go-toml/v2 v2.0.8 // indirect
92-
github.com/prometheus/procfs v0.11.0 // indirect
92+
github.com/pelletier/go-toml/v2 v2.1.0 // indirect
93+
github.com/prometheus/procfs v0.11.1 // indirect
9394
github.com/ryanuber/go-glob v1.0.0 // indirect
95+
github.com/sosodev/duration v1.1.0 // indirect
9496
github.com/spf13/afero v1.9.5 // indirect
9597
github.com/spf13/cast v1.5.1 // indirect
9698
github.com/spf13/jwalterweatherman v1.1.0 // indirect
@@ -99,38 +101,38 @@ require (
99101
github.com/vishvananda/netlink v1.2.1-beta.2 // indirect
100102
github.com/vishvananda/netns v0.0.4 // indirect
101103
github.com/xiang90/probing v0.0.0-20221125231312-a49e3df8f510 // indirect
102-
go.etcd.io/bbolt v1.3.7 // indirect
103-
go.etcd.io/etcd/client/pkg/v3 v3.5.9 // indirect
104-
go.etcd.io/etcd/client/v2 v2.305.9 // indirect
105-
go.etcd.io/etcd/pkg/v3 v3.5.9 // indirect
106-
go.etcd.io/etcd/raft/v3 v3.5.9 // indirect
107-
go.etcd.io/etcd/server/v3 v3.5.9 // indirect
104+
go.etcd.io/bbolt v1.3.8 // indirect
105+
go.etcd.io/etcd/client/pkg/v3 v3.5.10 // indirect
106+
go.etcd.io/etcd/client/v2 v2.305.10 // indirect
107+
go.etcd.io/etcd/pkg/v3 v3.5.10 // indirect
108+
go.etcd.io/etcd/raft/v3 v3.5.10 // indirect
109+
go.etcd.io/etcd/server/v3 v3.5.10 // indirect
108110
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.42.0 // indirect
109111
go.opentelemetry.io/otel v1.16.0 // indirect
110112
go.opentelemetry.io/otel/metric v1.16.0 // indirect
111113
go.opentelemetry.io/otel/trace v1.16.0 // indirect
112114
go.uber.org/atomic v1.11.0 // indirect
113115
go.uber.org/multierr v1.11.0 // indirect
114116
go.uber.org/zap v1.24.0 // indirect
115-
golang.org/x/net v0.12.0 // indirect
116-
golang.org/x/oauth2 v0.8.0 // indirect
117-
golang.org/x/sys v0.10.0 // indirect
118-
golang.org/x/text v0.11.0 // indirect
117+
golang.org/x/net v0.18.0 // indirect
118+
golang.org/x/oauth2 v0.12.0 // indirect
119+
golang.org/x/sys v0.14.0 // indirect
120+
golang.org/x/text v0.14.0 // indirect
119121
golang.org/x/time v0.3.0 // indirect
120-
golang.org/x/tools v0.11.0 // indirect
122+
golang.org/x/tools v0.14.0 // indirect
121123
google.golang.org/appengine v1.6.7 // indirect
122-
google.golang.org/genproto v0.0.0-20230710151506-e685fd7b542b // indirect
123-
google.golang.org/genproto/googleapis/api v0.0.0-20230710151506-e685fd7b542b // indirect
124-
google.golang.org/genproto/googleapis/rpc v0.0.0-20230710151506-e685fd7b542b // indirect
125-
google.golang.org/grpc v1.56.2 // indirect
124+
google.golang.org/genproto v0.0.0-20230822172742-b8732ec3820d // indirect
125+
google.golang.org/genproto/googleapis/api v0.0.0-20230822172742-b8732ec3820d // indirect
126+
google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d // indirect
127+
google.golang.org/grpc v1.59.0 // indirect
126128
google.golang.org/protobuf v1.31.0 // indirect
127129
gopkg.in/inf.v0 v0.9.1 // indirect
128130
gopkg.in/ini.v1 v1.67.0 // indirect
129131
gopkg.in/yaml.v2 v2.4.0 // indirect
130132
gopkg.in/yaml.v3 v3.0.1 // indirect
131-
k8s.io/component-base v0.26.6 // indirect
132-
k8s.io/klog/v2 v2.80.1 // indirect
133-
k8s.io/kube-openapi v0.0.0-20221012153701-172d655c2280 // indirect
134-
sigs.k8s.io/json v0.0.0-20220713155537-f223a00ba0e2 // indirect
133+
k8s.io/component-base v0.27.8 // indirect
134+
k8s.io/klog/v2 v2.90.1 // indirect
135+
k8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f // indirect
136+
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
135137
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
136138
)

0 commit comments

Comments
 (0)