Skip to content
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

feat: remove provisioners.Collection #124

Merged
merged 1 commit into from
Jun 4, 2024
Merged

Conversation

terinjokes
Copy link
Contributor

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

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
@terinjokes terinjokes requested a review from a team June 1, 2024 21:09
@terinjokes terinjokes merged commit fd52ada into trunk Jun 4, 2024
11 checks passed
@terinjokes terinjokes deleted the terin/collections branch June 4, 2024 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants