forked from bank-vaults/bank-vaults
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
webhook: create sa tokens via apiserver (bank-vaults#1752)
Currently the webhook tries to find sa.secrets[0] and load its token. But this is no longer available from K8S 1.24 (unless users force creating legacy tokens on each sa which is not best practice). This change allows creating tokens by calling the apiserver instead of expecting it to be available as a k8s secret associated to the service account. * webhook: create sa tokens via apiserver
- Loading branch information
Showing
1 changed file
with
30 additions
and
4 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