Skip to content

Commit d0e01cd

Browse files
authored
Update k8s 1.30.1 client libs (#586)
Signed-off-by: Tamal Saha <[email protected]>
1 parent d7b7b9e commit d0e01cd

File tree

551 files changed

+50617
-15252
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

551 files changed

+50617
-15252
lines changed

client/duck/controller.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ import (
3030
"sigs.k8s.io/controller-runtime/pkg/manager"
3131
"sigs.k8s.io/controller-runtime/pkg/predicate"
3232
"sigs.k8s.io/controller-runtime/pkg/reconcile"
33-
"sigs.k8s.io/controller-runtime/pkg/source"
3433
)
3534

3635
// ControllerBuilder builds a Controller.
@@ -116,17 +115,17 @@ func (blder *ControllerBuilder) Owns(object client.Object, opts ...builder.OwnsO
116115

117116
// WatchesInput represents the information set by Watches method.
118117
type WatchesInput struct {
119-
src source.Source
118+
obj client.Object
120119
eventhandler handler.EventHandler
121120
opts []builder.WatchesOption
122121
}
123122

124123
// Watches exposes the lower-level ControllerManagedBy Watches functions through the builder. Consider using
125124
// Owns or For instead of Watches directly.
126125
// Specified predicates are registered only for given source.
127-
func (blder *ControllerBuilder) Watches(src source.Source, eventhandler handler.EventHandler, opts ...builder.WatchesOption) *ControllerBuilder {
126+
func (blder *ControllerBuilder) Watches(object client.Object, eventhandler handler.EventHandler, opts ...builder.WatchesOption) *ControllerBuilder {
128127
input := WatchesInput{
129-
src: src,
128+
obj: object,
130129
eventhandler: eventhandler,
131130
opts: opts,
132131
}
@@ -210,7 +209,7 @@ func (blder *ControllerBuilder) Complete(rb ReconcilerBuilder) error {
210209
b2.Owns(own.object, own.opts...)
211210
}
212211
for _, w := range blder.watchesInput {
213-
b2.WatchesRawSource(w.src, w.eventhandler, w.opts...)
212+
b2.Watches(w.obj, w.eventhandler, w.opts...)
214213
}
215214
for _, p := range blder.globalPredicates {
216215
b2.WithEventFilter(p)

go.mod

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ require (
2121
github.com/imdario/mergo v0.3.6
2222
github.com/json-iterator/go v1.1.12
2323
github.com/mitchellh/mapstructure v1.5.0
24-
github.com/onsi/gomega v1.32.0
24+
github.com/onsi/gomega v1.33.1
2525
github.com/pkg/errors v0.9.1
2626
github.com/spf13/pflag v1.0.5
2727
github.com/stretchr/testify v1.9.0
@@ -33,17 +33,17 @@ require (
3333
gomodules.xyz/pointer v0.1.0
3434
gomodules.xyz/sync v0.1.0
3535
gomodules.xyz/x v0.0.17
36-
k8s.io/api v0.29.2
37-
k8s.io/apiextensions-apiserver v0.29.2
38-
k8s.io/apimachinery v0.29.2
39-
k8s.io/apiserver v0.29.2
40-
k8s.io/cli-runtime v0.29.2
41-
k8s.io/client-go v0.29.2
36+
k8s.io/api v0.30.1
37+
k8s.io/apiextensions-apiserver v0.30.1
38+
k8s.io/apimachinery v0.30.1
39+
k8s.io/apiserver v0.30.1
40+
k8s.io/cli-runtime v0.30.1
41+
k8s.io/client-go v0.30.1
4242
k8s.io/klog/v2 v2.120.1
43-
k8s.io/kube-aggregator v0.29.2
44-
k8s.io/kube-openapi v0.0.0-20240403164606-bc84c2ddaf99
43+
k8s.io/kube-aggregator v0.30.1
44+
k8s.io/kube-openapi v0.0.0-20240430033511-f0e62f92d13f
4545
kmodules.xyz/apiversion v0.2.0
46-
sigs.k8s.io/controller-runtime v0.17.3
46+
sigs.k8s.io/controller-runtime v0.18.2
4747
sigs.k8s.io/yaml v1.4.0
4848
)
4949

@@ -59,7 +59,7 @@ require (
5959
github.com/coreos/go-semver v0.3.1 // indirect
6060
github.com/coreos/go-systemd/v22 v22.5.0 // indirect
6161
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
62-
github.com/evanphx/json-patch/v5 v5.8.0 // indirect
62+
github.com/evanphx/json-patch/v5 v5.9.0 // indirect
6363
github.com/felixge/httpsnoop v1.0.3 // indirect
6464
github.com/go-errors/errors v1.4.2 // indirect
6565
github.com/go-logr/stdr v1.2.2 // indirect
@@ -69,7 +69,7 @@ require (
6969
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
7070
github.com/golang/protobuf v1.5.4 // indirect
7171
github.com/google/btree v1.0.1 // indirect
72-
github.com/google/cel-go v0.17.7 // indirect
72+
github.com/google/cel-go v0.17.8 // indirect
7373
github.com/google/gnostic-models v0.6.8 // indirect
7474
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
7575
github.com/google/uuid v1.6.0 // indirect
@@ -81,7 +81,7 @@ require (
8181
github.com/klauspost/cpuid/v2 v2.0.9 // indirect
8282
github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de // indirect
8383
github.com/mailru/easyjson v0.7.7 // indirect
84-
github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 // indirect
84+
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
8585
github.com/moby/spdystream v0.2.0 // indirect
8686
github.com/moby/term v0.0.0-20221205130635-1aeaba878587 // indirect
8787
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
@@ -93,9 +93,9 @@ require (
9393
github.com/opencontainers/go-digest v1.0.0 // indirect
9494
github.com/peterbourgon/diskv v2.0.1+incompatible // indirect
9595
github.com/pmezard/go-difflib v1.0.0 // indirect
96-
github.com/prometheus/client_golang v1.18.0 // indirect
97-
github.com/prometheus/client_model v0.5.0 // indirect
98-
github.com/prometheus/common v0.45.0 // indirect
96+
github.com/prometheus/client_golang v1.16.0 // indirect
97+
github.com/prometheus/client_model v0.4.0 // indirect
98+
github.com/prometheus/common v0.44.0 // indirect
9999
github.com/prometheus/procfs v0.12.0 // indirect
100100
github.com/sergi/go-diff v1.1.0 // indirect
101101
github.com/spf13/cobra v1.8.0 // indirect
@@ -118,13 +118,13 @@ require (
118118
go.starlark.net v0.0.0-20230525235612-a134d8f9ddca // indirect
119119
go.uber.org/multierr v1.11.0 // indirect
120120
go.uber.org/zap v1.26.0 // indirect
121-
golang.org/x/crypto v0.21.0 // indirect
121+
golang.org/x/crypto v0.22.0 // indirect
122122
golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e // indirect
123-
golang.org/x/net v0.23.0 // indirect
123+
golang.org/x/net v0.24.0 // indirect
124124
golang.org/x/oauth2 v0.12.0 // indirect
125-
golang.org/x/sync v0.5.0 // indirect
126-
golang.org/x/sys v0.18.0 // indirect
127-
golang.org/x/term v0.18.0 // indirect
125+
golang.org/x/sync v0.7.0 // indirect
126+
golang.org/x/sys v0.19.0 // indirect
127+
golang.org/x/term v0.19.0 // indirect
128128
golang.org/x/text v0.14.0 // indirect
129129
gomodules.xyz/homedir v0.1.0 // indirect
130130
google.golang.org/appengine v1.6.7 // indirect
@@ -137,10 +137,10 @@ require (
137137
gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect
138138
gopkg.in/yaml.v2 v2.4.0 // indirect
139139
gopkg.in/yaml.v3 v3.0.1 // indirect
140-
k8s.io/component-base v0.29.2 // indirect
141-
k8s.io/kms v0.29.2 // indirect
140+
k8s.io/component-base v0.30.1 // indirect
141+
k8s.io/kms v0.30.1 // indirect
142142
k8s.io/utils v0.0.0-20230726121419-3b25d923346b // indirect
143-
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.28.0 // indirect
143+
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.29.0 // indirect
144144
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
145145
sigs.k8s.io/kustomize/api v0.13.5-0.20230601165947-6ce0bf390ce3 // indirect
146146
sigs.k8s.io/kustomize/kyaml v0.14.3-0.20230601165947-6ce0bf390ce3 // indirect

0 commit comments

Comments
 (0)