Skip to content

Commit 61337b5

Browse files
⚠️ Upgrade controller-runtime from v0.19.4 to v0.20.0 and k8s deps from 1.31 to 1.32 (#4492)
Upgrade controller-runtime from v0.19.4 to v0.20.0
1 parent 3fb09bf commit 61337b5

File tree

44 files changed

+647
-449
lines changed

Some content is hidden

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

44 files changed

+647
-449
lines changed

docs/book/src/cronjob-tutorial/testdata/project/cmd/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ func main() {
155155

156156
// Metrics endpoint is enabled in 'config/default/kustomization.yaml'. The Metrics options configure the server.
157157
// More info:
158-
// - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.19.4/pkg/metrics/server
158+
// - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.20.0/pkg/metrics/server
159159
// - https://book.kubebuilder.io/reference/metrics.html
160160
metricsServerOptions := metricsserver.Options{
161161
BindAddress: metricsAddr,
@@ -167,7 +167,7 @@ func main() {
167167
// FilterProvider is used to protect the metrics endpoint with authn/authz.
168168
// These configurations ensure that only authorized users and service accounts
169169
// can access the metrics endpoint. The RBAC are configured in 'config/rbac/kustomization.yaml'. More info:
170-
// https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.19.4/pkg/metrics/filters#WithAuthenticationAndAuthorization
170+
// https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.20.0/pkg/metrics/filters#WithAuthenticationAndAuthorization
171171
metricsServerOptions.FilterProvider = filters.WithAuthenticationAndAuthorization
172172
}
173173

docs/book/src/cronjob-tutorial/testdata/project/config/crd/bases/batch.tutorial.kubebuilder.io_cronjobs.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2778,6 +2778,39 @@ spec:
27782778
x-kubernetes-list-map-keys:
27792779
- name
27802780
x-kubernetes-list-type: map
2781+
resources:
2782+
properties:
2783+
claims:
2784+
items:
2785+
properties:
2786+
name:
2787+
type: string
2788+
request:
2789+
type: string
2790+
required:
2791+
- name
2792+
type: object
2793+
type: array
2794+
x-kubernetes-list-map-keys:
2795+
- name
2796+
x-kubernetes-list-type: map
2797+
limits:
2798+
additionalProperties:
2799+
anyOf:
2800+
- type: integer
2801+
- type: string
2802+
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
2803+
x-kubernetes-int-or-string: true
2804+
type: object
2805+
requests:
2806+
additionalProperties:
2807+
anyOf:
2808+
- type: integer
2809+
- type: string
2810+
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
2811+
x-kubernetes-int-or-string: true
2812+
type: object
2813+
type: object
27812814
restartPolicy:
27822815
type: string
27832816
runtimeClassName:
@@ -2820,6 +2853,8 @@ spec:
28202853
runAsUser:
28212854
format: int64
28222855
type: integer
2856+
seLinuxChangePolicy:
2857+
type: string
28232858
seLinuxOptions:
28242859
properties:
28252860
level:

docs/book/src/cronjob-tutorial/testdata/project/dist/install.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2786,6 +2786,39 @@ spec:
27862786
x-kubernetes-list-map-keys:
27872787
- name
27882788
x-kubernetes-list-type: map
2789+
resources:
2790+
properties:
2791+
claims:
2792+
items:
2793+
properties:
2794+
name:
2795+
type: string
2796+
request:
2797+
type: string
2798+
required:
2799+
- name
2800+
type: object
2801+
type: array
2802+
x-kubernetes-list-map-keys:
2803+
- name
2804+
x-kubernetes-list-type: map
2805+
limits:
2806+
additionalProperties:
2807+
anyOf:
2808+
- type: integer
2809+
- type: string
2810+
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
2811+
x-kubernetes-int-or-string: true
2812+
type: object
2813+
requests:
2814+
additionalProperties:
2815+
anyOf:
2816+
- type: integer
2817+
- type: string
2818+
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
2819+
x-kubernetes-int-or-string: true
2820+
type: object
2821+
type: object
27892822
restartPolicy:
27902823
type: string
27912824
runtimeClassName:
@@ -2828,6 +2861,8 @@ spec:
28282861
runAsUser:
28292862
format: int64
28302863
type: integer
2864+
seLinuxChangePolicy:
2865+
type: string
28312866
seLinuxOptions:
28322867
properties:
28332868
level:

docs/book/src/cronjob-tutorial/testdata/project/go.mod

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,17 @@ go 1.23.0
55
godebug default=go1.23
66

77
require (
8-
github.com/onsi/ginkgo/v2 v2.19.0
9-
github.com/onsi/gomega v1.33.1
8+
github.com/onsi/ginkgo/v2 v2.21.0
9+
github.com/onsi/gomega v1.35.1
1010
github.com/robfig/cron v1.2.0
11-
k8s.io/api v0.31.0
12-
k8s.io/apimachinery v0.31.0
13-
k8s.io/client-go v0.31.0
14-
sigs.k8s.io/controller-runtime v0.19.4
11+
k8s.io/api v0.32.0
12+
k8s.io/apimachinery v0.32.0
13+
k8s.io/client-go v0.32.0
14+
sigs.k8s.io/controller-runtime v0.20.0
1515
)
1616

1717
require (
18+
cel.dev/expr v0.18.0 // indirect
1819
github.com/antlr4-go/antlr/v4 v4.13.0 // indirect
1920
github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a // indirect
2021
github.com/beorn7/perks v1.0.1 // indirect
@@ -30,21 +31,20 @@ require (
3031
github.com/go-logr/logr v1.4.2 // indirect
3132
github.com/go-logr/stdr v1.2.2 // indirect
3233
github.com/go-logr/zapr v1.3.0 // indirect
33-
github.com/go-openapi/jsonpointer v0.19.6 // indirect
34+
github.com/go-openapi/jsonpointer v0.21.0 // indirect
3435
github.com/go-openapi/jsonreference v0.20.2 // indirect
35-
github.com/go-openapi/swag v0.22.4 // indirect
36+
github.com/go-openapi/swag v0.23.0 // indirect
3637
github.com/go-task/slim-sprig/v3 v3.0.0 // indirect
3738
github.com/gogo/protobuf v1.3.2 // indirect
38-
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
3939
github.com/golang/protobuf v1.5.4 // indirect
40-
github.com/google/cel-go v0.20.1 // indirect
40+
github.com/google/btree v1.1.3 // indirect
41+
github.com/google/cel-go v0.22.0 // indirect
4142
github.com/google/gnostic-models v0.6.8 // indirect
4243
github.com/google/go-cmp v0.6.0 // indirect
4344
github.com/google/gofuzz v1.2.0 // indirect
44-
github.com/google/pprof v0.0.0-20240525223248-4bfdf5a9a2af // indirect
45+
github.com/google/pprof v0.0.0-20241029153458-d1b30febd7db // indirect
4546
github.com/google/uuid v1.6.0 // indirect
4647
github.com/grpc-ecosystem/grpc-gateway/v2 v2.20.0 // indirect
47-
github.com/imdario/mergo v0.3.6 // indirect
4848
github.com/inconshreveable/mousetrap v1.1.0 // indirect
4949
github.com/josharian/intern v1.0.0 // indirect
5050
github.com/json-iterator/go v1.1.12 // indirect
@@ -59,7 +59,7 @@ require (
5959
github.com/prometheus/procfs v0.15.1 // indirect
6060
github.com/spf13/cobra v1.8.1 // indirect
6161
github.com/spf13/pflag v1.0.5 // indirect
62-
github.com/stoewer/go-strcase v1.2.0 // indirect
62+
github.com/stoewer/go-strcase v1.3.0 // indirect
6363
github.com/x448/float16 v0.8.4 // indirect
6464
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.53.0 // indirect
6565
go.opentelemetry.io/otel v1.28.0 // indirect
@@ -70,32 +70,32 @@ require (
7070
go.opentelemetry.io/otel/trace v1.28.0 // indirect
7171
go.opentelemetry.io/proto/otlp v1.3.1 // indirect
7272
go.uber.org/multierr v1.11.0 // indirect
73-
go.uber.org/zap v1.26.0 // indirect
74-
golang.org/x/exp v0.0.0-20230515195305-f3d0a9c9a5cc // indirect
75-
golang.org/x/net v0.26.0 // indirect
76-
golang.org/x/oauth2 v0.21.0 // indirect
77-
golang.org/x/sync v0.7.0 // indirect
78-
golang.org/x/sys v0.21.0 // indirect
79-
golang.org/x/term v0.21.0 // indirect
80-
golang.org/x/text v0.16.0 // indirect
81-
golang.org/x/time v0.3.0 // indirect
82-
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect
73+
go.uber.org/zap v1.27.0 // indirect
74+
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect
75+
golang.org/x/net v0.30.0 // indirect
76+
golang.org/x/oauth2 v0.23.0 // indirect
77+
golang.org/x/sync v0.8.0 // indirect
78+
golang.org/x/sys v0.26.0 // indirect
79+
golang.org/x/term v0.25.0 // indirect
80+
golang.org/x/text v0.19.0 // indirect
81+
golang.org/x/time v0.7.0 // indirect
82+
golang.org/x/tools v0.26.0 // indirect
8383
gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect
84-
google.golang.org/genproto/googleapis/api v0.0.0-20240528184218-531527333157 // indirect
85-
google.golang.org/genproto/googleapis/rpc v0.0.0-20240701130421-f6361c86f094 // indirect
84+
google.golang.org/genproto/googleapis/api v0.0.0-20240826202546-f6391c0de4c7 // indirect
85+
google.golang.org/genproto/googleapis/rpc v0.0.0-20240826202546-f6391c0de4c7 // indirect
8686
google.golang.org/grpc v1.65.0 // indirect
87-
google.golang.org/protobuf v1.34.2 // indirect
87+
google.golang.org/protobuf v1.35.1 // indirect
88+
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
8889
gopkg.in/inf.v0 v0.9.1 // indirect
89-
gopkg.in/yaml.v2 v2.4.0 // indirect
9090
gopkg.in/yaml.v3 v3.0.1 // indirect
91-
k8s.io/apiextensions-apiserver v0.31.0 // indirect
92-
k8s.io/apiserver v0.31.0 // indirect
93-
k8s.io/component-base v0.31.0 // indirect
91+
k8s.io/apiextensions-apiserver v0.32.0 // indirect
92+
k8s.io/apiserver v0.32.0 // indirect
93+
k8s.io/component-base v0.32.0 // indirect
9494
k8s.io/klog/v2 v2.130.1 // indirect
95-
k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340 // indirect
96-
k8s.io/utils v0.0.0-20240711033017-18e509b52bc8 // indirect
97-
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.30.3 // indirect
98-
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
99-
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect
95+
k8s.io/kube-openapi v0.0.0-20241105132330-32ad38e42d3f // indirect
96+
k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 // indirect
97+
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.31.0 // indirect
98+
sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 // indirect
99+
sigs.k8s.io/structured-merge-diff/v4 v4.4.2 // indirect
100100
sigs.k8s.io/yaml v1.4.0 // indirect
101101
)

0 commit comments

Comments
 (0)