-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: remove provisioners.Collection
The controller was creating an instance of a signing provisioner in the OriginIssuer reconciler, as an attempt to optimize against creating new API clients. As the certificates issued by the Origin API are valid for a minimium of 7 days this seems like a premature optimization. As the reconciler was not watching the service key secret for updates, it was also persisting stale API tokens. This changeset removes the concept of the provisioner collection. A new API client and provisioner will be created as needed in the OriginIssuer reconciler. This allows users to update their API token without needing to restart the controller. Fixes: ##109
- Loading branch information
1 parent
364ab34
commit fd52ada
Showing
7 changed files
with
100 additions
and
163 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
Oops, something went wrong.