Skip to content

Commit

Permalink
Merge pull request #3 from monzo/fix-namespace-and-name-reading
Browse files Browse the repository at this point in the history
Use `namespace()` and `name()` wrapper functions
  • Loading branch information
nickrmc83 authored Nov 24, 2022
2 parents 155915b + 2e0c637 commit 3004f4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion path_login.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ func (b *kubeAuthBackend) parseAndValidateJWT(ctx context.Context, jwtStr string
}

if config.EnableCustomMetadataFromAnnotations {
annotations, err := b.serviceAccountReaderFactory(config).ReadAnnotations(ctx, sa.Name, sa.Namespace)
annotations, err := b.serviceAccountReaderFactory(config).ReadAnnotations(ctx, sa.name(), sa.namespace())
if err != nil {
return nil, fmt.Errorf("failed to read serviceaccount annotations: %v", err)
}
Expand Down

0 comments on commit 3004f4f

Please sign in to comment.