Skip to content

Commit 5391809

Browse files
⚠️ Upgrade controller-runtime from v0.22.4 to v0.23.0 (#5378)
Upgrade controller-runtime from v0.22.4 to v0.23.0
1 parent 4941f57 commit 5391809

File tree

130 files changed

+1154
-1354
lines changed

Some content is hidden

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

130 files changed

+1154
-1354
lines changed

build/.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ builds:
4646
- darwin_amd64
4747
- darwin_arm64
4848
env:
49-
- KUBERNETES_VERSION=1.34.1
49+
- KUBERNETES_VERSION=1.35.0
5050
- CGO_ENABLED=0
5151

5252
# Only binaries of the form "kubebuilder_${goos}_${goarch}" will be released.

cmd/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const (
4040
// information in the release process
4141
var (
4242
kubeBuilderVersion = unknown
43-
kubernetesVendorVersion = "1.34.1"
43+
kubernetesVendorVersion = "1.35.0"
4444
goos = unknown
4545
goarch = unknown
4646
gitCommit = "$Format:%H$" // sha1 from git, output of $(git rev-parse HEAD)

docs/book/src/cronjob-tutorial/testdata/project/AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ kubectl logs -n <project>-system deployment/<project>-controller-manager -c mana
198198
// +kubebuilder:rbac:groups=mygroup.example.com,resources=mykinds,verbs=get;list;watch;create;update;patch;delete
199199
// +kubebuilder:rbac:groups=mygroup.example.com,resources=mykinds/status,verbs=get;update;patch
200200
// +kubebuilder:rbac:groups=mygroup.example.com,resources=mykinds/finalizers,verbs=update
201-
// +kubebuilder:rbac:groups=core,resources=events,verbs=create;patch
201+
// +kubebuilder:rbac:groups=events.k8s.io,resources=events,verbs=create;patch
202202
// +kubebuilder:rbac:groups=apps,resources=deployments,verbs=get;list;watch;create;update;patch;delete
203203
```
204204

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

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

142142
// Metrics endpoint is enabled in 'config/default/kustomization.yaml'. The Metrics options configure the server.
143143
// More info:
144-
// - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.22.4/pkg/metrics/server
144+
// - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.23.0/pkg/metrics/server
145145
// - https://book.kubebuilder.io/reference/metrics.html
146146
metricsServerOptions := metricsserver.Options{
147147
BindAddress: metricsAddr,
@@ -153,7 +153,7 @@ func main() {
153153
// FilterProvider is used to protect the metrics endpoint with authn/authz.
154154
// These configurations ensure that only authorized users and service accounts
155155
// can access the metrics endpoint. The RBAC are configured in 'config/rbac/kustomization.yaml'. More info:
156-
// https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.22.4/pkg/metrics/filters#WithAuthenticationAndAuthorization
156+
// https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.23.0/pkg/metrics/filters#WithAuthenticationAndAuthorization
157157
metricsServerOptions.FilterProvider = filters.WithAuthenticationAndAuthorization
158158
}
159159

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

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ spec:
9898
type:
9999
type: string
100100
required:
101-
- status
102101
- type
103102
type: object
104103
type: array
@@ -3734,6 +3733,10 @@ spec:
37343733
type: integer
37353734
signerName:
37363735
type: string
3736+
userAnnotations:
3737+
additionalProperties:
3738+
type: string
3739+
type: object
37373740
required:
37383741
- keyType
37393742
- signerName
@@ -3928,6 +3931,18 @@ spec:
39283931
x-kubernetes-list-map-keys:
39293932
- name
39303933
x-kubernetes-list-type: map
3934+
workloadRef:
3935+
properties:
3936+
name:
3937+
type: string
3938+
podGroup:
3939+
type: string
3940+
podGroupReplicaKey:
3941+
type: string
3942+
required:
3943+
- name
3944+
- podGroup
3945+
type: object
39313946
required:
39323947
- containers
39333948
type: object

docs/book/src/cronjob-tutorial/testdata/project/dist/chart/templates/crd/cronjobs.batch.tutorial.kubebuilder.io.yaml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ spec:
9898
type:
9999
type: string
100100
required:
101-
- status
102101
- type
103102
type: object
104103
type: array
@@ -3734,6 +3733,10 @@ spec:
37343733
type: integer
37353734
signerName:
37363735
type: string
3736+
userAnnotations:
3737+
additionalProperties:
3738+
type: string
3739+
type: object
37373740
required:
37383741
- keyType
37393742
- signerName
@@ -3928,6 +3931,18 @@ spec:
39283931
x-kubernetes-list-map-keys:
39293932
- name
39303933
x-kubernetes-list-type: map
3934+
workloadRef:
3935+
properties:
3936+
name:
3937+
type: string
3938+
podGroup:
3939+
type: string
3940+
podGroupReplicaKey:
3941+
type: string
3942+
required:
3943+
- name
3944+
- podGroup
3945+
type: object
39313946
required:
39323947
- containers
39333948
type: object

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

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ spec:
106106
type:
107107
type: string
108108
required:
109-
- status
110109
- type
111110
type: object
112111
type: array
@@ -3742,6 +3741,10 @@ spec:
37423741
type: integer
37433742
signerName:
37443743
type: string
3744+
userAnnotations:
3745+
additionalProperties:
3746+
type: string
3747+
type: object
37453748
required:
37463749
- keyType
37473750
- signerName
@@ -3936,6 +3939,18 @@ spec:
39363939
x-kubernetes-list-map-keys:
39373940
- name
39383941
x-kubernetes-list-type: map
3942+
workloadRef:
3943+
properties:
3944+
name:
3945+
type: string
3946+
podGroup:
3947+
type: string
3948+
podGroupReplicaKey:
3949+
type: string
3950+
required:
3951+
- name
3952+
- podGroup
3953+
type: object
39393954
required:
39403955
- containers
39413956
type: object

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

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,19 @@ module tutorial.kubebuilder.io/project
33
go 1.25.3
44

55
require (
6-
github.com/onsi/ginkgo/v2 v2.22.0
7-
github.com/onsi/gomega v1.36.1
6+
github.com/onsi/ginkgo/v2 v2.27.2
7+
github.com/onsi/gomega v1.38.2
88
github.com/robfig/cron v1.2.0
9-
k8s.io/api v0.34.1
10-
k8s.io/apimachinery v0.34.1
11-
k8s.io/client-go v0.34.1
12-
k8s.io/utils v0.0.0-20250604170112-4c0f3b243397
13-
sigs.k8s.io/controller-runtime v0.22.4
9+
k8s.io/api v0.35.0
10+
k8s.io/apimachinery v0.35.0
11+
k8s.io/client-go v0.35.0
12+
k8s.io/utils v0.0.0-20251002143259-bc988d571ff4
13+
sigs.k8s.io/controller-runtime v0.23.0
1414
)
1515

1616
require (
1717
cel.dev/expr v0.24.0 // indirect
18+
github.com/Masterminds/semver/v3 v3.4.0 // indirect
1819
github.com/antlr4-go/antlr/v4 v4.13.0 // indirect
1920
github.com/beorn7/perks v1.0.1 // indirect
2021
github.com/blang/semver/v4 v4.0.0 // indirect
@@ -26,19 +27,18 @@ require (
2627
github.com/felixge/httpsnoop v1.0.4 // indirect
2728
github.com/fsnotify/fsnotify v1.9.0 // indirect
2829
github.com/fxamacker/cbor/v2 v2.9.0 // indirect
29-
github.com/go-logr/logr v1.4.2 // indirect
30+
github.com/go-logr/logr v1.4.3 // indirect
3031
github.com/go-logr/stdr v1.2.2 // indirect
3132
github.com/go-logr/zapr v1.3.0 // indirect
3233
github.com/go-openapi/jsonpointer v0.21.0 // indirect
3334
github.com/go-openapi/jsonreference v0.20.2 // indirect
3435
github.com/go-openapi/swag v0.23.0 // indirect
3536
github.com/go-task/slim-sprig/v3 v3.0.0 // indirect
36-
github.com/gogo/protobuf v1.3.2 // indirect
3737
github.com/google/btree v1.1.3 // indirect
3838
github.com/google/cel-go v0.26.0 // indirect
3939
github.com/google/gnostic-models v0.7.0 // indirect
4040
github.com/google/go-cmp v0.7.0 // indirect
41-
github.com/google/pprof v0.0.0-20241029153458-d1b30febd7db // indirect
41+
github.com/google/pprof v0.0.0-20250403155104-27863c87afa6 // indirect
4242
github.com/google/uuid v1.6.0 // indirect
4343
github.com/grpc-ecosystem/grpc-gateway/v2 v2.26.3 // indirect
4444
github.com/inconshreveable/mousetrap v1.1.0 // indirect
@@ -48,53 +48,53 @@ require (
4848
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
4949
github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee // indirect
5050
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
51-
github.com/pkg/errors v0.9.1 // indirect
5251
github.com/pmezard/go-difflib v1.0.0 // indirect
53-
github.com/prometheus/client_golang v1.22.0 // indirect
54-
github.com/prometheus/client_model v0.6.1 // indirect
55-
github.com/prometheus/common v0.62.0 // indirect
56-
github.com/prometheus/procfs v0.15.1 // indirect
57-
github.com/spf13/cobra v1.9.1 // indirect
58-
github.com/spf13/pflag v1.0.6 // indirect
52+
github.com/prometheus/client_golang v1.23.2 // indirect
53+
github.com/prometheus/client_model v0.6.2 // indirect
54+
github.com/prometheus/common v0.66.1 // indirect
55+
github.com/prometheus/procfs v0.16.1 // indirect
56+
github.com/spf13/cobra v1.10.0 // indirect
57+
github.com/spf13/pflag v1.0.9 // indirect
5958
github.com/stoewer/go-strcase v1.3.0 // indirect
6059
github.com/x448/float16 v0.8.4 // indirect
6160
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
62-
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.58.0 // indirect
63-
go.opentelemetry.io/otel v1.35.0 // indirect
61+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0 // indirect
62+
go.opentelemetry.io/otel v1.36.0 // indirect
6463
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.34.0 // indirect
6564
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.34.0 // indirect
66-
go.opentelemetry.io/otel/metric v1.35.0 // indirect
67-
go.opentelemetry.io/otel/sdk v1.34.0 // indirect
68-
go.opentelemetry.io/otel/trace v1.35.0 // indirect
65+
go.opentelemetry.io/otel/metric v1.36.0 // indirect
66+
go.opentelemetry.io/otel/sdk v1.36.0 // indirect
67+
go.opentelemetry.io/otel/trace v1.36.0 // indirect
6968
go.opentelemetry.io/proto/otlp v1.5.0 // indirect
7069
go.uber.org/multierr v1.11.0 // indirect
7170
go.uber.org/zap v1.27.0 // indirect
72-
go.yaml.in/yaml/v2 v2.4.2 // indirect
71+
go.yaml.in/yaml/v2 v2.4.3 // indirect
7372
go.yaml.in/yaml/v3 v3.0.4 // indirect
7473
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect
75-
golang.org/x/net v0.38.0 // indirect
76-
golang.org/x/oauth2 v0.27.0 // indirect
77-
golang.org/x/sync v0.12.0 // indirect
78-
golang.org/x/sys v0.31.0 // indirect
79-
golang.org/x/term v0.30.0 // indirect
80-
golang.org/x/text v0.23.0 // indirect
74+
golang.org/x/mod v0.29.0 // indirect
75+
golang.org/x/net v0.47.0 // indirect
76+
golang.org/x/oauth2 v0.30.0 // indirect
77+
golang.org/x/sync v0.18.0 // indirect
78+
golang.org/x/sys v0.38.0 // indirect
79+
golang.org/x/term v0.37.0 // indirect
80+
golang.org/x/text v0.31.0 // indirect
8181
golang.org/x/time v0.9.0 // indirect
82-
golang.org/x/tools v0.26.0 // indirect
82+
golang.org/x/tools v0.38.0 // indirect
8383
gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect
8484
google.golang.org/genproto/googleapis/api v0.0.0-20250303144028-a0af3efb3deb // indirect
85-
google.golang.org/genproto/googleapis/rpc v0.0.0-20250303144028-a0af3efb3deb // indirect
86-
google.golang.org/grpc v1.72.1 // indirect
87-
google.golang.org/protobuf v1.36.5 // indirect
88-
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
85+
google.golang.org/genproto/googleapis/rpc v0.0.0-20250528174236-200df99c418a // indirect
86+
google.golang.org/grpc v1.72.2 // indirect
87+
google.golang.org/protobuf v1.36.8 // indirect
88+
gopkg.in/evanphx/json-patch.v4 v4.13.0 // indirect
8989
gopkg.in/inf.v0 v0.9.1 // indirect
9090
gopkg.in/yaml.v3 v3.0.1 // indirect
91-
k8s.io/apiextensions-apiserver v0.34.1 // indirect
92-
k8s.io/apiserver v0.34.1 // indirect
93-
k8s.io/component-base v0.34.1 // indirect
91+
k8s.io/apiextensions-apiserver v0.35.0 // indirect
92+
k8s.io/apiserver v0.35.0 // indirect
93+
k8s.io/component-base v0.35.0 // indirect
9494
k8s.io/klog/v2 v2.130.1 // indirect
95-
k8s.io/kube-openapi v0.0.0-20250710124328-f3f2b991d03b // indirect
95+
k8s.io/kube-openapi v0.0.0-20250910181357-589584f1c912 // indirect
9696
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.31.2 // indirect
97-
sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8 // indirect
97+
sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 // indirect
9898
sigs.k8s.io/randfill v1.0.0 // indirect
9999
sigs.k8s.io/structured-merge-diff/v6 v6.3.0 // indirect
100100
sigs.k8s.io/yaml v1.6.0 // indirect

0 commit comments

Comments
 (0)