Skip to content

Commit

Permalink
Fixing lint
Browse files Browse the repository at this point in the history
Signed-off-by: Gustavo Carvalho <gustavo.carvalho@container-solutions.com>
  • Loading branch information
Gustavo Carvalho committed Oct 22, 2021
1 parent 389f7e4 commit 403b1a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/provider/aws/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/provider/aws/auth/auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 403b1a3

Please # to comment.