From 37471c7a5f01d83f66e633829f4186b3a37a631b Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Tue, 8 Dec 2020 14:21:56 +0100 Subject: [PATCH] cleanup: return error type in ReconcilePersistentVolume.getCredentials() Signed-off-by: Niels de Vos --- internal/controller/persistentvolume/persistentvolume.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/controller/persistentvolume/persistentvolume.go b/internal/controller/persistentvolume/persistentvolume.go index 9d41182d4..5ff66805c 100644 --- a/internal/controller/persistentvolume/persistentvolume.go +++ b/internal/controller/persistentvolume/persistentvolume.go @@ -92,7 +92,7 @@ func (r *ReconcilePersistentVolume) getCredentials(name, namespace string) (*uti secret := &corev1.Secret{} err := r.client.Get(context.TODO(), types.NamespacedName{Name: name, Namespace: namespace}, secret) if err != nil { - return nil, fmt.Errorf("error getting secret %s in namespace %s: %v", name, namespace, err) + return nil, fmt.Errorf("error getting secret %s in namespace %s: %w", name, namespace, err) } credentials := map[string]string{}