Skip to content

Commit dfadc63

Browse files
✨ feat: upgrade controller-runtime from v0.21.0 to v0.22.0 (#5062)
feat: upgrade controller-runtime from v0.21.0 to v0.22.0
1 parent 1d9d137 commit dfadc63

File tree

48 files changed

+1729
-427
lines changed

Some content is hidden

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

48 files changed

+1729
-427
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.33.0
49+
- KUBERNETES_VERSION=1.34.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
@@ -27,7 +27,7 @@ const unknown = "unknown"
2727
// information in the release process
2828
var (
2929
kubeBuilderVersion = unknown
30-
kubernetesVendorVersion = "1.33.0"
30+
kubernetesVendorVersion = "1.34.0"
3131
goos = unknown
3232
goarch = unknown
3333
gitCommit = "$Format:%H$" // sha1 from git, output of $(git rev-parse HEAD)

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.21.0/pkg/metrics/server
144+
// - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.22.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.21.0/pkg/metrics/filters#WithAuthenticationAndAuthorization
156+
// https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.22.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: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,23 @@ spec:
652652
- fieldPath
653653
type: object
654654
x-kubernetes-map-type: atomic
655+
fileKeyRef:
656+
properties:
657+
key:
658+
type: string
659+
optional:
660+
default: false
661+
type: boolean
662+
path:
663+
type: string
664+
volumeName:
665+
type: string
666+
required:
667+
- key
668+
- path
669+
- volumeName
670+
type: object
671+
x-kubernetes-map-type: atomic
655672
resourceFieldRef:
656673
properties:
657674
containerName:
@@ -1080,6 +1097,29 @@ spec:
10801097
type: object
10811098
restartPolicy:
10821099
type: string
1100+
restartPolicyRules:
1101+
items:
1102+
properties:
1103+
action:
1104+
type: string
1105+
exitCodes:
1106+
properties:
1107+
operator:
1108+
type: string
1109+
values:
1110+
items:
1111+
format: int32
1112+
type: integer
1113+
type: array
1114+
x-kubernetes-list-type: set
1115+
required:
1116+
- operator
1117+
type: object
1118+
required:
1119+
- action
1120+
type: object
1121+
type: array
1122+
x-kubernetes-list-type: atomic
10831123
securityContext:
10841124
properties:
10851125
allowPrivilegeEscalation:
@@ -1364,6 +1404,23 @@ spec:
13641404
- fieldPath
13651405
type: object
13661406
x-kubernetes-map-type: atomic
1407+
fileKeyRef:
1408+
properties:
1409+
key:
1410+
type: string
1411+
optional:
1412+
default: false
1413+
type: boolean
1414+
path:
1415+
type: string
1416+
volumeName:
1417+
type: string
1418+
required:
1419+
- key
1420+
- path
1421+
- volumeName
1422+
type: object
1423+
x-kubernetes-map-type: atomic
13671424
resourceFieldRef:
13681425
properties:
13691426
containerName:
@@ -1792,6 +1849,29 @@ spec:
17921849
type: object
17931850
restartPolicy:
17941851
type: string
1852+
restartPolicyRules:
1853+
items:
1854+
properties:
1855+
action:
1856+
type: string
1857+
exitCodes:
1858+
properties:
1859+
operator:
1860+
type: string
1861+
values:
1862+
items:
1863+
format: int32
1864+
type: integer
1865+
type: array
1866+
x-kubernetes-list-type: set
1867+
required:
1868+
- operator
1869+
type: object
1870+
required:
1871+
- action
1872+
type: object
1873+
type: array
1874+
x-kubernetes-list-type: atomic
17951875
securityContext:
17961876
properties:
17971877
allowPrivilegeEscalation:
@@ -2033,6 +2113,8 @@ spec:
20332113
type: boolean
20342114
hostname:
20352115
type: string
2116+
hostnameOverride:
2117+
type: string
20362118
imagePullSecrets:
20372119
items:
20382120
properties:
@@ -2090,6 +2172,23 @@ spec:
20902172
- fieldPath
20912173
type: object
20922174
x-kubernetes-map-type: atomic
2175+
fileKeyRef:
2176+
properties:
2177+
key:
2178+
type: string
2179+
optional:
2180+
default: false
2181+
type: boolean
2182+
path:
2183+
type: string
2184+
volumeName:
2185+
type: string
2186+
required:
2187+
- key
2188+
- path
2189+
- volumeName
2190+
type: object
2191+
x-kubernetes-map-type: atomic
20932192
resourceFieldRef:
20942193
properties:
20952194
containerName:
@@ -2518,6 +2617,29 @@ spec:
25182617
type: object
25192618
restartPolicy:
25202619
type: string
2620+
restartPolicyRules:
2621+
items:
2622+
properties:
2623+
action:
2624+
type: string
2625+
exitCodes:
2626+
properties:
2627+
operator:
2628+
type: string
2629+
values:
2630+
items:
2631+
format: int32
2632+
type: integer
2633+
type: array
2634+
x-kubernetes-list-type: set
2635+
required:
2636+
- operator
2637+
type: object
2638+
required:
2639+
- action
2640+
type: object
2641+
type: array
2642+
x-kubernetes-list-type: atomic
25212643
securityContext:
25222644
properties:
25232645
allowPrivilegeEscalation:
@@ -3597,6 +3719,25 @@ spec:
35973719
type: array
35983720
x-kubernetes-list-type: atomic
35993721
type: object
3722+
podCertificate:
3723+
properties:
3724+
certificateChainPath:
3725+
type: string
3726+
credentialBundlePath:
3727+
type: string
3728+
keyPath:
3729+
type: string
3730+
keyType:
3731+
type: string
3732+
maxExpirationSeconds:
3733+
format: int32
3734+
type: integer
3735+
signerName:
3736+
type: string
3737+
required:
3738+
- keyType
3739+
- signerName
3740+
type: object
36003741
secret:
36013742
properties:
36023743
items:

0 commit comments

Comments
 (0)