Skip to content

Commit c0f448e

Browse files
committed
Upgrade go.mod k8s.io/ go.mod to v0.31.3 and set klog.SetLogger() for client-go
Also bumped to support upgraded k8s.io/ deps. - controller-gen to v0.16.5 - sigs.k8s.io/controller-runtime v0.19.2 Signed-off-by: Tiger Kaovilai <[email protected]>
1 parent 9f0026d commit c0f448e

37 files changed

+227
-548
lines changed

changelogs/unreleased/8450-kaovilai

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Upgrade go.mod k8s.io/ go.mod to v0.31.3 and implemented proper logger configuration for both client-go and controller-runtime libraries. This change ensures that logging format and level settings are properly applied throughout the codebase. The update improves logging consistency and control across the Velero system.

config/crd/v1/bases/velero.io_backuprepositories.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.14.0
6+
controller-gen.kubebuilder.io/version: v0.16.5
77
name: backuprepositories.velero.io
88
spec:
99
group: velero.io

config/crd/v1/bases/velero.io_backups.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.14.0
6+
controller-gen.kubebuilder.io/version: v0.16.5
77
name: backups.velero.io
88
spec:
99
group: velero.io
@@ -63,7 +63,6 @@ spec:
6363
DefaultVolumesToRestic specifies whether restic should be used to take a
6464
backup of all pod volumes by default.
6565
66-
6766
Deprecated: this field is no longer used and will be removed entirely in future. Use DefaultVolumesToFsBackup instead.
6867
nullable: true
6968
type: boolean

config/crd/v1/bases/velero.io_backupstoragelocations.yaml

+1-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.14.0
6+
controller-gen.kubebuilder.io/version: v0.16.5
77
name: backupstoragelocations.velero.io
88
spec:
99
group: velero.io
@@ -92,9 +92,7 @@ spec:
9292
This field is effectively required, but due to backwards compatibility is
9393
allowed to be empty. Instances of this type with an empty value here are
9494
almost certainly wrong.
95-
TODO: Add other useful fields. apiVersion, kind, uid?
9695
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
97-
TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896.
9896
type: string
9997
optional:
10098
description: Specify whether the Secret or its key must be defined
@@ -146,7 +144,6 @@ spec:
146144
description: |-
147145
AccessMode is an unused field.
148146
149-
150147
Deprecated: there is now an AccessMode field on the Spec and this field
151148
will be removed entirely as of v2.0.
152149
enum:
@@ -158,7 +155,6 @@ spec:
158155
LastSyncedRevision is the value of the `metadata/revision` file in the backup
159156
storage location the last time the BSL's contents were synced into the cluster.
160157
161-
162158
Deprecated: this field is no longer updated or used for detecting changes to
163159
the location's contents and will be removed entirely in v2.0.
164160
type: string

config/crd/v1/bases/velero.io_deletebackuprequests.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.14.0
6+
controller-gen.kubebuilder.io/version: v0.16.5
77
name: deletebackuprequests.velero.io
88
spec:
99
group: velero.io

config/crd/v1/bases/velero.io_downloadrequests.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.14.0
6+
controller-gen.kubebuilder.io/version: v0.16.5
77
name: downloadrequests.velero.io
88
spec:
99
group: velero.io

config/crd/v1/bases/velero.io_podvolumebackups.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.14.0
6+
controller-gen.kubebuilder.io/version: v0.16.5
77
name: podvolumebackups.velero.io
88
spec:
99
group: velero.io
@@ -96,7 +96,6 @@ spec:
9696
the event) or if no container name is specified "spec.containers[2]" (container with
9797
index 2 in this pod). This syntax is chosen only to have some well-defined way of
9898
referencing a part of an object.
99-
TODO: this design is not final and this field is subject to change in the future.
10099
type: string
101100
kind:
102101
description: |-

config/crd/v1/bases/velero.io_podvolumerestores.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.14.0
6+
controller-gen.kubebuilder.io/version: v0.16.5
77
name: podvolumerestores.velero.io
88
spec:
99
group: velero.io
@@ -93,7 +93,6 @@ spec:
9393
the event) or if no container name is specified "spec.containers[2]" (container with
9494
index 2 in this pod). This syntax is chosen only to have some well-defined way of
9595
referencing a part of an object.
96-
TODO: this design is not final and this field is subject to change in the future.
9796
type: string
9897
kind:
9998
description: |-

config/crd/v1/bases/velero.io_restores.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.14.0
6+
controller-gen.kubebuilder.io/version: v0.16.5
77
name: restores.velero.io
88
spec:
99
group: velero.io

config/crd/v1/bases/velero.io_schedules.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.14.0
6+
controller-gen.kubebuilder.io/version: v0.16.5
77
name: schedules.velero.io
88
spec:
99
group: velero.io
@@ -102,7 +102,6 @@ spec:
102102
DefaultVolumesToRestic specifies whether restic should be used to take a
103103
backup of all pod volumes by default.
104104
105-
106105
Deprecated: this field is no longer used and will be removed entirely in future. Use DefaultVolumesToFsBackup instead.
107106
nullable: true
108107
type: boolean

config/crd/v1/bases/velero.io_serverstatusrequests.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.14.0
6+
controller-gen.kubebuilder.io/version: v0.16.5
77
name: serverstatusrequests.velero.io
88
spec:
99
group: velero.io

config/crd/v1/bases/velero.io_volumesnapshotlocations.yaml

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.14.0
6+
controller-gen.kubebuilder.io/version: v0.16.5
77
name: volumesnapshotlocations.velero.io
88
spec:
99
group: velero.io
@@ -63,9 +63,7 @@ spec:
6363
This field is effectively required, but due to backwards compatibility is
6464
allowed to be empty. Instances of this type with an empty value here are
6565
almost certainly wrong.
66-
TODO: Add other useful fields. apiVersion, kind, uid?
6766
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
68-
TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896.
6967
type: string
7068
optional:
7169
description: Specify whether the Secret or its key must be defined

config/crd/v1/crds/crds.go

+11-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/v2alpha1/bases/velero.io_datadownloads.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.14.0
6+
controller-gen.kubebuilder.io/version: v0.16.5
77
name: datadownloads.velero.io
88
spec:
99
group: velero.io

config/crd/v2alpha1/bases/velero.io_datauploads.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.14.0
6+
controller-gen.kubebuilder.io/version: v0.16.5
77
name: datauploads.velero.io
88
spec:
99
group: velero.io

0 commit comments

Comments
 (0)