-
Notifications
You must be signed in to change notification settings - Fork 592
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide volume with OIDC token in SinkBinding (#7444)
* Split Sinkbinding controller setup and reconciler * Provide volume with OIDC token in SinkBinding * Fix init container volume mounts * Add unit test * Add expiry annotation in token secret and update only if close to expiry * Update tokenProvider GetJWT to return token expiry too * Add owner reference to secret * Add periodic resync * Use secret lister to reduce API server calls to reconcile token secret * Request a new JWT (without using cache) * Add token expiry buffer as a constant * Revert "Update tokenProvider GetJWT to return token expiry too" This reverts commit 1f87397. * Get expiry from token itself * Use explicit token expiration duration * Update secret generation on update * Renew token if issues with parsing * Simplify token reconcilation a bit * Create token secret name via kmeta.ChildName function * Make sinkbinding_lifecycle independent from feature config * Remove token secret when oidc feature disabled
- Loading branch information
Showing
23 changed files
with
1,520 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.