Skip to content

Commit 9d2d728

Browse files
author
Ariel Kass
committed
fix lll linter issues - line too long
Signed-off-by: Ariel Kass <[email protected]>
1 parent be48780 commit 9d2d728

File tree

3 files changed

+17
-10
lines changed

3 files changed

+17
-10
lines changed

controllers/pvc.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ import (
2929
// getPVCDataSource get pvc, pv object from the request.
3030
//
3131
//nolint:gocritic
32-
func (r VolumeReplicationReconciler) getPVCDataSource(ctx context.Context, logger logr.Logger, req types.NamespacedName) (*corev1.PersistentVolumeClaim, *corev1.PersistentVolume, error) {
32+
func (r VolumeReplicationReconciler) getPVCDataSource(ctx context.Context, logger logr.Logger, req types.NamespacedName) (
33+
*corev1.PersistentVolumeClaim, *corev1.PersistentVolume, error) {
3334
pvc := &corev1.PersistentVolumeClaim{}
3435
err := r.Client.Get(ctx, req, pvc)
3536
if err != nil {

controllers/vg.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ import (
2828
// getVGDataSource get vg content, vg object from the request.
2929
//
3030
//nolint:gocritic
31-
func (r VolumeReplicationReconciler) getVGDataSource(ctx context.Context, logger logr.Logger, req types.NamespacedName) (*volumegroupv1.VolumeGroup, *volumegroupv1.VolumeGroupContent, error) {
31+
func (r VolumeReplicationReconciler) getVGDataSource(ctx context.Context, logger logr.Logger, req types.NamespacedName) (
32+
*volumegroupv1.VolumeGroup, *volumegroupv1.VolumeGroupContent, error) {
3233
vg := &volumegroupv1.VolumeGroup{}
3334
err := r.Client.Get(ctx, req, vg)
3435
if err != nil {

pkg/client/replication-client.go

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,23 @@ type replicationClient struct {
3232
// VolumeReplication holds the methods required for volume replication.
3333
type VolumeReplication interface {
3434
// EnableVolumeReplication RPC call to enable the volume replication.
35-
EnableVolumeReplication(replicationSource *replicationlib.ReplicationSource, replicationID string, secrets, parameters map[string]string) (*replicationlib.EnableVolumeReplicationResponse, error)
35+
EnableVolumeReplication(replicationSource *replicationlib.ReplicationSource,
36+
replicationID string, secrets, parameters map[string]string) (
37+
*replicationlib.EnableVolumeReplicationResponse, error)
3638
// DisableVolumeReplication RPC call to disable the volume replication.
37-
DisableVolumeReplication(replicationSource *replicationlib.ReplicationSource, replicationID string, secrets, parameters map[string]string) (*replicationlib.DisableVolumeReplicationResponse, error)
39+
DisableVolumeReplication(replicationSource *replicationlib.ReplicationSource,
40+
replicationID string, secrets, parameters map[string]string) (
41+
*replicationlib.DisableVolumeReplicationResponse, error)
3842
// PromoteVolume RPC call to promote the volume.
39-
PromoteVolume(replicationSource *replicationlib.ReplicationSource, replicationID string, force bool, secrets, parameters map[string]string) (*replicationlib.
40-
PromoteVolumeResponse, error)
43+
PromoteVolume(replicationSource *replicationlib.ReplicationSource, replicationID string,
44+
force bool, secrets, parameters map[string]string) (
45+
*replicationlib.PromoteVolumeResponse, error)
4146
// DemoteVolume RPC call to demote the volume.
42-
DemoteVolume(replicationSource *replicationlib.ReplicationSource, replicationID string, secrets, parameters map[string]string) (*replicationlib.
43-
DemoteVolumeResponse, error)
47+
DemoteVolume(replicationSource *replicationlib.ReplicationSource, replicationID string,
48+
secrets, parameters map[string]string) (*replicationlib.DemoteVolumeResponse, error)
4449
// ResyncVolume RPC call to resync the volume.
45-
ResyncVolume(replicationSource *replicationlib.ReplicationSource, replicationID string, force bool, secrets, parameters map[string]string) (*replicationlib.
46-
ResyncVolumeResponse, error)
50+
ResyncVolume(replicationSource *replicationlib.ReplicationSource, replicationID string,
51+
force bool, secrets, parameters map[string]string) (*replicationlib.ResyncVolumeResponse, error)
4752
}
4853

4954
// NewReplicationClient returns VolumeReplication interface which has the RPC

0 commit comments

Comments
 (0)