mirror of
https://github.com/external-secrets/external-secrets.git
synced 2024-12-14 11:57:59 +00:00
Fixing lint
Signed-off-by: Gustavo Carvalho <gustavo.carvalho@container-solutions.com>
This commit is contained in:
parent
389f7e45de
commit
403b1a34a0
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue