Browse Source

Fixing lint

Signed-off-by: Gustavo Carvalho <gustavo.carvalho@container-solutions.com>
Gustavo Carvalho 4 years ago
parent
commit
403b1a34a0
2 changed files with 2 additions and 2 deletions
  1. 1 1
      pkg/provider/aws/auth/auth.go
  2. 1 1
      pkg/provider/aws/auth/auth_test.go

+ 1 - 1
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) {
 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 store.GetObjectKind().GroupVersionKind().Kind == esv1alpha1.ClusterSecretStoreKind {
 		if prov.Auth.JWTAuth.ServiceAccountRef.Namespace == nil {
 		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
 		namespace = *prov.Auth.JWTAuth.ServiceAccountRef.Namespace
 	}
 	}

+ 1 - 1
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 {
 	for i := range rows {