Skip to content

Commit 77a3d2e

Browse files
authored
remove dup import (#467)
1 parent 51c2dc3 commit 77a3d2e

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

tests/e2e/plugins_helpers.go

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,30 @@ import (
44
"context"
55
"log"
66

7-
"github.com/openshift/oadp-operator/api/v1alpha1"
87
oadpv1alpha1 "github.com/openshift/oadp-operator/api/v1alpha1"
98
"github.com/openshift/oadp-operator/pkg/credentials"
109
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
1110
"k8s.io/apimachinery/pkg/util/wait"
1211
"sigs.k8s.io/controller-runtime/pkg/client"
1312
)
1413

15-
func (v *dpaCustomResource) removeVeleroPlugin(namespace string, instanceName string, pluginValues []v1alpha1.DefaultPlugin, removedPlugin string) error {
16-
err := v.SetClient()
14+
func (d *dpaCustomResource) removeVeleroPlugin(namespace string, instanceName string, pluginValues []oadpv1alpha1.DefaultPlugin, removedPlugin string) error {
15+
err := d.SetClient()
1716
if err != nil {
1817
return err
1918
}
2019
dpa := &oadpv1alpha1.DataProtectionApplication{}
21-
err = v.Client.Get(context.Background(), client.ObjectKey{
22-
Namespace: v.Namespace,
23-
Name: v.Name,
20+
err = d.Client.Get(context.Background(), client.ObjectKey{
21+
Namespace: d.Namespace,
22+
Name: d.Name,
2423
}, dpa)
2524
if err != nil {
2625
return err
2726
}
2827
// remove plugin from default_plugins
2928
dpa.Spec.Configuration.Velero.DefaultPlugins = pluginValues
3029

31-
err = v.Client.Update(context.Background(), dpa)
30+
err = d.Client.Update(context.Background(), dpa)
3231
if err != nil {
3332
return err
3433
}

0 commit comments

Comments
 (0)