From 403b1a34a0b196d0e99ddd687ffa1bc4557d7ca5 Mon Sep 17 00:00:00 2001 From: Gustavo Carvalho Date: Fri, 22 Oct 2021 14:45:21 -0300 Subject: [PATCH] Fixing lint Signed-off-by: Gustavo Carvalho --- pkg/provider/aws/auth/auth.go | 2 +- pkg/provider/aws/auth/auth_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/provider/aws/auth/auth.go b/pkg/provider/aws/auth/auth.go index a7d5437ba32..4b7226b20d6 100644 --- a/pkg/provider/aws/auth/auth.go +++ b/pkg/provider/aws/auth/auth.go @@ -161,7 +161,7 @@ func sessionFromSecretRef(ctx context.Context, prov *esv1alpha1.AWSProvider, sto func sessionFromServiceAccount(ctx context.Context, prov *esv1alpha1.AWSProvider, store esv1alpha1.GenericStore, kube client.Client, namespace string, jwtProvider jwtProviderFactory) (*credentials.Credentials, error) { if store.GetObjectKind().GroupVersionKind().Kind == esv1alpha1.ClusterSecretStoreKind { if prov.Auth.JWTAuth.ServiceAccountRef.Namespace == nil { - return nil, fmt.Errorf("ServiceAccountRef has no Namespace field (mandatory for ClusterSecretStore specs)") + return nil, fmt.Errorf("serviceAccountRef has no Namespace field (mandatory for ClusterSecretStore specs)") } namespace = *prov.Auth.JWTAuth.ServiceAccountRef.Namespace } diff --git a/pkg/provider/aws/auth/auth_test.go b/pkg/provider/aws/auth/auth_test.go index 966fd3afd05..94dcebf012f 100644 --- a/pkg/provider/aws/auth/auth_test.go +++ b/pkg/provider/aws/auth/auth_test.go @@ -434,7 +434,7 @@ func TestNewSession(t *testing.T) { }, }, }, - expectErr: "ServiceAccountRef has no Namespace field (mandatory for ClusterSecretStore specs)", + expectErr: "serviceAccountRef has no Namespace field (mandatory for ClusterSecretStore specs)", }, } for i := range rows {