-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve JWTAuthenticator Status #1851
Conversation
6e9fd00
to
300f86f
Compare
3505ab7
to
9005d3d
Compare
0ca59e8
to
f84183e
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1851 +/- ##
==========================================
+ Coverage 38.14% 38.45% +0.31%
==========================================
Files 346 347 +1
Lines 43638 43959 +321
==========================================
+ Hits 16646 16906 +260
- Misses 26477 26540 +63
+ Partials 515 513 -2 ☔ View full report in Codecov by Sentry. |
7075321
to
d8545ac
Compare
@benjaminapetersen Please don't forget to add integration test coverage for the new feature. You can probably add coverage to some of the existing integration tests. To see an example of similar coverage, look for usages of the |
181c2b8
to
b22d4cb
Compare
b22d4cb
to
199f057
Compare
Pushed a fix for this failing integration test: https://ci.pinniped.dev/builds/2327880 |
internal/controller/authenticator/jwtcachefiller/jwtcachefiller.go
Outdated
Show resolved
Hide resolved
internal/controller/authenticator/jwtcachefiller/jwtcachefiller.go
Outdated
Show resolved
Hide resolved
internal/controller/authenticator/jwtcachefiller/jwtcachefiller_test.go
Outdated
Show resolved
Hide resolved
internal/controller/authenticator/jwtcachefiller/jwtcachefiller_test.go
Outdated
Show resolved
Hide resolved
@benjaminapetersen It seems like maybe you don't have the project's git hooks configured on your development workstation, because you did not update the copyright dates as enforced by the git hooks. Please see https://github.com/vmware-tanzu/pinniped/blob/main/CONTRIBUTING.md#pre-commit-hooks. |
internal/controller/authenticator/jwtcachefiller/jwtcachefiller.go
Outdated
Show resolved
Hide resolved
internal/controller/authenticator/jwtcachefiller/jwtcachefiller.go
Outdated
Show resolved
Hide resolved
internal/controller/authenticator/jwtcachefiller/jwtcachefiller.go
Outdated
Show resolved
Hide resolved
internal/controller/authenticator/jwtcachefiller/jwtcachefiller.go
Outdated
Show resolved
Hide resolved
internal/controller/authenticator/jwtcachefiller/jwtcachefiller.go
Outdated
Show resolved
Hide resolved
internal/controller/authenticator/jwtcachefiller/jwtcachefiller.go
Outdated
Show resolved
Hide resolved
internal/controller/authenticator/jwtcachefiller/jwtcachefiller.go
Outdated
Show resolved
Hide resolved
internal/controller/authenticator/jwtcachefiller/jwtcachefiller.go
Outdated
Show resolved
Hide resolved
90afd5c
to
13360eb
Compare
Squashed. |
13360eb
to
73a20e2
Compare
0eb7389
to
c4c66a3
Compare
- "Ready" condition & supporting conditions - Legacy "Phase" for convenience - Refactor newCachedJWTAuthenticator() func to improve ability to provide additional conditions - Update JWTAuthenticator.Status type - Update RBAC for SA to get/watch/update JWTAuthenticator.Status - Update logger to plog, add tests for logs & statuses - update Sync() to reduce enqueue when error is config/user managed, perhaps remove validateJWKSResponse()
- some format updates - add timestamp to test - fix order of expect,actual in some assertions - remove some commented code no longer needed
- paired with changes to e2e_test.go, adds Status.Condition assertions around JWTAuthenticators
- Add test to verify timestamps are particularly updated - Improve diff output in tests for actions - Make jwtauthenticator status tests parallel - Update copyright headers in multiple files
c4c66a3
to
f498cb3
Compare
Improving the status messages of the JWT Authenticator.
Release note: