Skip to content

Commit 6dd7d02

Browse files
authored
Merge pull request #760 from humblec/correct-fmt-2
update client package with go 1.19 formatting changes
2 parents 7c1ca79 + 461143e commit 6dd7d02

File tree

4 files changed

+29
-29
lines changed

4 files changed

+29
-29
lines changed

client/apis/volumesnapshot/v1/types.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,11 @@ type VolumeSnapshotSource struct {
123123
// VolumeSnapshotStatus and VolumeSnapshotContentStatus. Fields in VolumeSnapshotStatus
124124
// are updated based on fields in VolumeSnapshotContentStatus. They are eventual
125125
// consistency. These fields are duplicate in both objects due to the following reasons:
126-
// - Fields in VolumeSnapshotContentStatus can be used for filtering when importing a
127-
// volumesnapshot.
128-
// - VolumsnapshotStatus is used by end users because they cannot see VolumeSnapshotContent.
129-
// - CSI snapshotter sidecar is light weight as it only watches VolumeSnapshotContent
130-
// object, not VolumeSnapshot object.
126+
// - Fields in VolumeSnapshotContentStatus can be used for filtering when importing a
127+
// volumesnapshot.
128+
// - VolumsnapshotStatus is used by end users because they cannot see VolumeSnapshotContent.
129+
// - CSI snapshotter sidecar is light weight as it only watches VolumeSnapshotContent
130+
// object, not VolumeSnapshot object.
131131
type VolumeSnapshotStatus struct {
132132
// boundVolumeSnapshotContentName is the name of the VolumeSnapshotContent
133133
// object to which this VolumeSnapshot object intends to bind to.
@@ -361,11 +361,11 @@ type VolumeSnapshotContentSource struct {
361361
// VolumeSnapshotStatus and VolumeSnapshotContentStatus. Fields in VolumeSnapshotStatus
362362
// are updated based on fields in VolumeSnapshotContentStatus. They are eventual
363363
// consistency. These fields are duplicate in both objects due to the following reasons:
364-
// - Fields in VolumeSnapshotContentStatus can be used for filtering when importing a
365-
// volumesnapshot.
366-
// - VolumsnapshotStatus is used by end users because they cannot see VolumeSnapshotContent.
367-
// - CSI snapshotter sidecar is light weight as it only watches VolumeSnapshotContent
368-
// object, not VolumeSnapshot object.
364+
// - Fields in VolumeSnapshotContentStatus can be used for filtering when importing a
365+
// volumesnapshot.
366+
// - VolumsnapshotStatus is used by end users because they cannot see VolumeSnapshotContent.
367+
// - CSI snapshotter sidecar is light weight as it only watches VolumeSnapshotContent
368+
// object, not VolumeSnapshot object.
369369
type VolumeSnapshotContentStatus struct {
370370
// snapshotHandle is the CSI "snapshot_id" of a snapshot on the underlying storage system.
371371
// If not specified, it indicates that dynamic snapshot creation has either failed

client/clientset/versioned/fake/register.go

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/clientset/versioned/scheme/register.go

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/common-controller/snapshot_controller.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -783,11 +783,11 @@ func (ctrl *csiSnapshotCommonController) storeContentUpdate(content interface{})
783783
// the status has actually changed from the version saved in API server.
784784
// Parameters:
785785
//
786-
// * snapshot - snapshot to update
787-
// * setReadyToFalse bool - indicates whether to set the snapshot's ReadyToUse status to false.
788-
// if true, ReadyToUse will be set to false;
789-
// otherwise, ReadyToUse will not be changed.
790-
// * eventtype, reason, message - event to send, see EventRecorder.Event()
786+
// - snapshot - snapshot to update
787+
// - setReadyToFalse bool - indicates whether to set the snapshot's ReadyToUse status to false.
788+
// if true, ReadyToUse will be set to false;
789+
// otherwise, ReadyToUse will not be changed.
790+
// - eventtype, reason, message - event to send, see EventRecorder.Event()
791791
func (ctrl *csiSnapshotCommonController) updateSnapshotErrorStatusWithEvent(snapshot *crdv1.VolumeSnapshot, setReadyToFalse bool, eventtype, reason, message string) error {
792792
klog.V(5).Infof("updateSnapshotErrorStatusWithEvent[%s]", utils.SnapshotKey(snapshot))
793793

0 commit comments

Comments
 (0)