Skip to content

Commit fe2acf5

Browse files
remove duplicate imports of package
Signed-off-by: Umanga Chapagain <[email protected]>
1 parent e27a97d commit fe2acf5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

addons/onboarding_token.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import (
1313
"time"
1414

1515
"github.com/red-hat-storage/odf-multicluster-orchestrator/addons/setup"
16-
"github.com/red-hat-storage/odf-multicluster-orchestrator/api/v1alpha1"
1716
multiclusterv1alpha1 "github.com/red-hat-storage/odf-multicluster-orchestrator/api/v1alpha1"
1817
"github.com/red-hat-storage/odf-multicluster-orchestrator/controllers/utils"
1918
corev1 "k8s.io/api/core/v1"
@@ -72,7 +71,7 @@ func requestStorageClusterPeerToken(ctx context.Context, proxyServiceNamespace s
7271
return body, nil
7372
}
7473

75-
func createStorageClusterPeerTokenSecret(ctx context.Context, client client.Client, scheme *runtime.Scheme, spokeClusterName string, odfOperatorNamespace string, mirrorPeer multiclusterv1alpha1.MirrorPeer, storageClusterRef *v1alpha1.StorageClusterRef) error {
74+
func createStorageClusterPeerTokenSecret(ctx context.Context, client client.Client, scheme *runtime.Scheme, spokeClusterName string, odfOperatorNamespace string, mirrorPeer multiclusterv1alpha1.MirrorPeer, storageClusterRef *multiclusterv1alpha1.StorageClusterRef) error {
7675
uniqueSecretName := string(mirrorPeer.GetUID())
7776
_, err := utils.FetchSecretWithName(ctx, client, types.NamespacedName{Namespace: spokeClusterName, Name: uniqueSecretName})
7877
if err != nil && !errors.IsNotFound(err) {

0 commit comments

Comments
 (0)