Skip to content

Commit 67f4a1e

Browse files
committed
Bump kubernetes dependencies
1 parent 0045f23 commit 67f4a1e

File tree

9 files changed

+210
-196
lines changed

9 files changed

+210
-196
lines changed

clientutils/clientutils.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ type clientMeta interface {
4242
type nonReaderClient interface {
4343
client.Writer
4444
client.StatusClient
45+
client.SubResourceClientConstructor
4546
clientMeta
4647
}
4748

cmdutils/switches/switches.go

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"sort"
2323
"strings"
2424

25-
"k8s.io/apimachinery/pkg/util/sets"
25+
"github.com/onmetal/controller-utils/set"
2626
)
2727

2828
const (
@@ -119,18 +119,13 @@ func (s *Switches) Enabled(name string) bool {
119119
}
120120

121121
// All returns names of all items set in settings
122-
func (s *Switches) All() sets.String {
123-
names := sets.NewString()
124-
for k := range s.defaults {
125-
names.Insert(k)
126-
}
127-
128-
return names
122+
func (s *Switches) All() set.Set[string] {
123+
return set.Keys(s.defaults)
129124
}
130125

131126
// Active returns names of all active items
132-
func (s *Switches) Active() sets.String {
133-
names := sets.NewString()
127+
func (s *Switches) Active() set.Set[string] {
128+
names := set.New[string]()
134129
for k, enabled := range s.settings {
135130
if enabled {
136131
names.Insert(k)
@@ -141,8 +136,8 @@ func (s *Switches) Active() sets.String {
141136
}
142137

143138
// EnabledByDefault returns names of all enabled items
144-
func (s *Switches) EnabledByDefault() sets.String {
145-
names := sets.NewString()
139+
func (s *Switches) EnabledByDefault() set.Set[string] {
140+
names := set.New[string]()
146141
for k, enabled := range s.defaults {
147142
if enabled {
148143
names.Insert(k)
@@ -153,8 +148,8 @@ func (s *Switches) EnabledByDefault() sets.String {
153148
}
154149

155150
// DisabledByDefault returns names of all disabled items
156-
func (s *Switches) DisabledByDefault() sets.String {
157-
names := sets.NewString()
151+
func (s *Switches) DisabledByDefault() set.Set[string] {
152+
names := set.New[string]()
158153
for k, enabled := range s.defaults {
159154
if !enabled {
160155
names.Insert(k)

cmdutils/switches/switches_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ package switches
1616
import (
1717
"flag"
1818

19+
"github.com/onmetal/controller-utils/set"
1920
. "github.com/onsi/ginkgo/v2"
2021
. "github.com/onsi/gomega"
2122
"github.com/spf13/pflag"
22-
"k8s.io/apimachinery/pkg/util/sets"
2323
)
2424

2525
var _ = Describe("CMD Switches", func() {
@@ -34,26 +34,26 @@ var _ = Describe("CMD Switches", func() {
3434
s := New("runner-a", "runner-b", Disable("runner-c"))
3535
Expect(s.Set("*,-runner-b")).ToNot(HaveOccurred())
3636

37-
expected := sets.NewString("runner-a", "runner-b", "runner-c")
37+
expected := set.New("runner-a", "runner-b", "runner-c")
3838
Expect(s.All()).To(Equal(expected))
3939
})
4040
It("should return only active items", func() {
4141
s := New("runner-a", "runner-b", Disable("runner-c"))
4242
Expect(s.Set("*,-runner-b")).ToNot(HaveOccurred())
4343

44-
expected := sets.NewString("runner-a")
44+
expected := set.New("runner-a")
4545
Expect(s.Active()).To(Equal(expected))
4646
})
4747
It("should return all enabled items", func() {
4848
s := New("runner-a", Disable("runner-b"))
4949

50-
expected := sets.NewString("runner-a")
50+
expected := set.New("runner-a")
5151
Expect(s.EnabledByDefault()).To(Equal(expected))
5252
})
5353
It("should return all disabled items", func() {
5454
s := New("runner-a", Disable("runner-b"))
5555

56-
expected := sets.NewString("runner-b")
56+
expected := set.New("runner-b")
5757
Expect(s.DisabledByDefault()).To(Equal(expected))
5858
})
5959
It("should return string", func() {

go.mod

Lines changed: 46 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -10,40 +10,40 @@ require (
1010
github.com/spf13/pflag v1.0.5
1111
github.com/stretchr/testify v1.8.1
1212
golang.org/x/exp v0.0.0-20221006183845-316c7553db56
13-
k8s.io/api v0.25.5
14-
k8s.io/apiextensions-apiserver v0.25.5
15-
k8s.io/apimachinery v0.25.5
16-
k8s.io/apiserver v0.25.5
17-
k8s.io/client-go v0.25.5
18-
k8s.io/utils v0.0.0-20220728103510-ee6ede2d64ed
19-
sigs.k8s.io/controller-runtime v0.13.1
13+
k8s.io/api v0.26.0
14+
k8s.io/apiextensions-apiserver v0.26.0
15+
k8s.io/apimachinery v0.26.0
16+
k8s.io/apiserver v0.26.0
17+
k8s.io/client-go v0.26.0
18+
k8s.io/utils v0.0.0-20221128185143-99ec85e7a448
19+
sigs.k8s.io/controller-runtime v0.14.1
2020
sigs.k8s.io/kustomize/api v0.12.1
2121
sigs.k8s.io/kustomize/kyaml v0.13.9
2222
)
2323

2424
require (
2525
github.com/NYTimes/gziphandler v1.1.1 // indirect
26-
github.com/PuerkitoBio/purell v1.1.1 // indirect
27-
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
28-
github.com/antlr/antlr4/runtime/Go/antlr v0.0.0-20220418222510-f25a4f6275ed // indirect
26+
github.com/antlr/antlr4/runtime/Go/antlr v1.4.10 // indirect
2927
github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a // indirect
3028
github.com/beorn7/perks v1.0.1 // indirect
3129
github.com/blang/semver/v4 v4.0.0 // indirect
3230
github.com/bmatcuk/doublestar/v4 v4.0.2 // indirect
31+
github.com/cenkalti/backoff/v4 v4.1.3 // indirect
3332
github.com/cespare/xxhash/v2 v2.1.2 // indirect
3433
github.com/coreos/go-semver v0.3.0 // indirect
3534
github.com/coreos/go-systemd/v22 v22.3.2 // indirect
3635
github.com/davecgh/go-spew v1.1.1 // indirect
37-
github.com/emicklei/go-restful/v3 v3.8.0 // indirect
36+
github.com/emicklei/go-restful/v3 v3.9.0 // indirect
3837
github.com/evanphx/json-patch v4.12.0+incompatible // indirect
3938
github.com/evanphx/json-patch/v5 v5.6.0 // indirect
40-
github.com/felixge/httpsnoop v1.0.1 // indirect
41-
github.com/fsnotify/fsnotify v1.5.4 // indirect
42-
github.com/go-errors/errors v1.0.1 // indirect
39+
github.com/felixge/httpsnoop v1.0.3 // indirect
40+
github.com/fsnotify/fsnotify v1.6.0 // indirect
41+
github.com/go-errors/errors v1.4.2 // indirect
4342
github.com/go-logr/logr v1.2.3 // indirect
43+
github.com/go-logr/stdr v1.2.2 // indirect
4444
github.com/go-openapi/jsonpointer v0.19.5 // indirect
45-
github.com/go-openapi/jsonreference v0.19.5 // indirect
46-
github.com/go-openapi/swag v0.19.14 // indirect
45+
github.com/go-openapi/jsonreference v0.20.0 // indirect
46+
github.com/go-openapi/swag v0.22.3 // indirect
4747
github.com/gogo/protobuf v1.3.2 // indirect
4848
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
4949
github.com/golang/protobuf v1.5.2 // indirect
@@ -54,66 +54,65 @@ require (
5454
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
5555
github.com/google/uuid v1.1.2 // indirect
5656
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect
57-
github.com/grpc-ecosystem/grpc-gateway v1.16.0 // indirect
57+
github.com/grpc-ecosystem/grpc-gateway/v2 v2.7.0 // indirect
5858
github.com/imdario/mergo v0.3.12 // indirect
59-
github.com/inconshreveable/mousetrap v1.0.0 // indirect
59+
github.com/inconshreveable/mousetrap v1.0.1 // indirect
6060
github.com/josharian/intern v1.0.0 // indirect
6161
github.com/json-iterator/go v1.1.12 // indirect
62-
github.com/mailru/easyjson v0.7.6 // indirect
63-
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect
62+
github.com/mailru/easyjson v0.7.7 // indirect
63+
github.com/matttproud/golang_protobuf_extensions v1.0.2 // indirect
6464
github.com/mitchellh/mapstructure v1.4.1 // indirect
6565
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
6666
github.com/modern-go/reflect2 v1.0.2 // indirect
6767
github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00 // indirect
6868
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
6969
github.com/pkg/errors v0.9.1 // indirect
7070
github.com/pmezard/go-difflib v1.0.0 // indirect
71-
github.com/prometheus/client_golang v1.12.2 // indirect
72-
github.com/prometheus/client_model v0.2.0 // indirect
73-
github.com/prometheus/common v0.32.1 // indirect
74-
github.com/prometheus/procfs v0.7.3 // indirect
75-
github.com/spf13/cobra v1.4.0 // indirect
71+
github.com/prometheus/client_golang v1.14.0 // indirect
72+
github.com/prometheus/client_model v0.3.0 // indirect
73+
github.com/prometheus/common v0.37.0 // indirect
74+
github.com/prometheus/procfs v0.8.0 // indirect
75+
github.com/spf13/cobra v1.6.0 // indirect
7676
github.com/stoewer/go-strcase v1.2.0 // indirect
7777
github.com/stretchr/objx v0.5.0 // indirect
7878
github.com/xlab/treeprint v1.1.0 // indirect
79-
go.etcd.io/etcd/api/v3 v3.5.4 // indirect
80-
go.etcd.io/etcd/client/pkg/v3 v3.5.4 // indirect
81-
go.etcd.io/etcd/client/v3 v3.5.4 // indirect
82-
go.opentelemetry.io/contrib v0.20.0 // indirect
83-
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.20.0 // indirect
84-
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.20.0 // indirect
85-
go.opentelemetry.io/otel v0.20.0 // indirect
86-
go.opentelemetry.io/otel/exporters/otlp v0.20.0 // indirect
87-
go.opentelemetry.io/otel/metric v0.20.0 // indirect
88-
go.opentelemetry.io/otel/sdk v0.20.0 // indirect
89-
go.opentelemetry.io/otel/sdk/export/metric v0.20.0 // indirect
90-
go.opentelemetry.io/otel/sdk/metric v0.20.0 // indirect
91-
go.opentelemetry.io/otel/trace v0.20.0 // indirect
92-
go.opentelemetry.io/proto/otlp v0.7.0 // indirect
79+
go.etcd.io/etcd/api/v3 v3.5.5 // indirect
80+
go.etcd.io/etcd/client/pkg/v3 v3.5.5 // indirect
81+
go.etcd.io/etcd/client/v3 v3.5.5 // indirect
82+
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.35.0 // indirect
83+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.35.0 // indirect
84+
go.opentelemetry.io/otel v1.10.0 // indirect
85+
go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.10.0 // indirect
86+
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.10.0 // indirect
87+
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.10.0 // indirect
88+
go.opentelemetry.io/otel/metric v0.31.0 // indirect
89+
go.opentelemetry.io/otel/sdk v1.10.0 // indirect
90+
go.opentelemetry.io/otel/trace v1.10.0 // indirect
91+
go.opentelemetry.io/proto/otlp v0.19.0 // indirect
9392
go.starlark.net v0.0.0-20200306205701-8dd3e2ee1dd5 // indirect
9493
go.uber.org/atomic v1.7.0 // indirect
9594
go.uber.org/multierr v1.6.0 // indirect
96-
go.uber.org/zap v1.21.0 // indirect
95+
go.uber.org/zap v1.24.0 // indirect
9796
golang.org/x/mod v0.6.0 // indirect
9897
golang.org/x/net v0.3.1-0.20221206200815-1e63c2f08a10 // indirect
99-
golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8 // indirect
98+
golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b // indirect
10099
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4 // indirect
101100
golang.org/x/sys v0.3.0 // indirect
102101
golang.org/x/term v0.3.0 // indirect
103102
golang.org/x/text v0.5.0 // indirect
104-
golang.org/x/time v0.0.0-20220609170525-579cf78fd858 // indirect
103+
golang.org/x/time v0.3.0 // indirect
105104
golang.org/x/tools v0.2.0 // indirect
106105
gomodules.xyz/jsonpatch/v2 v2.2.0 // indirect
107106
google.golang.org/appengine v1.6.7 // indirect
108107
google.golang.org/genproto v0.0.0-20220502173005-c8bf987b8c21 // indirect
109-
google.golang.org/grpc v1.47.0 // indirect
110-
google.golang.org/protobuf v1.28.0 // indirect
108+
google.golang.org/grpc v1.49.0 // indirect
109+
google.golang.org/protobuf v1.28.1 // indirect
111110
gopkg.in/inf.v0 v0.9.1 // indirect
112111
gopkg.in/yaml.v2 v2.4.0 // indirect
113112
gopkg.in/yaml.v3 v3.0.1 // indirect
114-
k8s.io/component-base v0.25.5 // indirect
115-
k8s.io/klog/v2 v2.70.1 // indirect
116-
k8s.io/kube-openapi v0.0.0-20220803162953-67bda5d908f1 // indirect
113+
k8s.io/component-base v0.26.0 // indirect
114+
k8s.io/klog/v2 v2.80.1 // indirect
115+
k8s.io/kube-openapi v0.0.0-20221012153701-172d655c2280 // indirect
117116
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.33 // indirect
118117
sigs.k8s.io/json v0.0.0-20220713155537-f223a00ba0e2 // indirect
119118
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect

0 commit comments

Comments
 (0)