Skip to content

Commit 41fef57

Browse files
author
Ariel Kass
committed
disable exhaustruct, fix gofmt errors
Signed-off-by: Ariel Kass <[email protected]>
1 parent c2a6110 commit 41fef57

File tree

6 files changed

+6
-2
lines changed

6 files changed

+6
-2
lines changed

.github/workflows/config/lint-config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ linters:
2424
- testpackage
2525
- wrapcheck
2626
- wsl
27+
- exhaustruct
2728
settings:
2829
depguard:
2930
rules:

api/v1alpha1/volumereplication_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ type VolumeReplicationList struct {
112112
metav1.TypeMeta `json:",inline"`
113113
metav1.ListMeta `json:"metadata,omitempty"`
114114

115-
Items []VolumeReplication `json:"items"`
115+
Items []VolumeReplication `json:"items"`
116116
}
117117

118118
func init() {

api/v1alpha1/volumereplicationclass_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ type VolumeReplicationClassList struct {
5757
metav1.TypeMeta `json:",inline"`
5858
metav1.ListMeta `json:"metadata,omitempty"`
5959

60-
Items []VolumeReplicationClass `json:"items"`
60+
Items []VolumeReplicationClass `json:"items"`
6161
}
6262

6363
func init() {

controllers/pvc.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import (
2727
)
2828

2929
// getPVCDataSource get pvc, pv object from the request.
30+
//
3031
//nolint:gocritic
3132
func (r VolumeReplicationReconciler) getPVCDataSource(ctx context.Context, logger logr.Logger, req types.NamespacedName) (*corev1.PersistentVolumeClaim, *corev1.PersistentVolume, error) {
3233
pvc := &corev1.PersistentVolumeClaim{}

controllers/vg.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import (
2626
)
2727

2828
// getVGDataSource get vg content, vg object from the request.
29+
//
2930
//nolint:gocritic
3031
func (r VolumeReplicationReconciler) getVGDataSource(ctx context.Context, logger logr.Logger, req types.NamespacedName) (*volumegroupv1.VolumeGroup, *volumegroupv1.VolumeGroupContent, error) {
3132
vg := &volumegroupv1.VolumeGroup{}

controllers/volumereplicationclass.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import (
2727
)
2828

2929
// getVolumeReplicationClass get volume replication class object from the subjected namespace and return the same.
30+
//
3031
//nolint:gocritic
3132
func (r VolumeReplicationReconciler) getVolumeReplicationClass(ctx context.Context, logger logr.Logger, vrcName string) (*replicationv1alpha1.VolumeReplicationClass, error) {
3233
vrcObj := &replicationv1alpha1.VolumeReplicationClass{}

0 commit comments

Comments
 (0)