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

Actuator enhancements #161

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Actuator enhancements #161

wants to merge 4 commits into from

Conversation

mdbooth
Copy link
Contributor

@mdbooth mdbooth commented Dec 20, 2024

  • Actuator has GetObject() instead of implementing client.Object
  • Generic finalizer handling
  • Remove unnecessary controller constants
  • Add ResourceControllerCommon

Move finalizer creation and deletion into generic methods. This ensures
that it is done consistently.

This also ensures that we don't add a finalizer until after we have an
authenticated openstack client. This prevents a situation when creating
objects with invalid credentials where the objects can't be deleted
without first fixing the credentials, which is unnecessary as they could
never have resulted in the creation of an OpenStack resource.
Removing ID transaction also highlights controllers which still needed
to be updated to use merge for status ID.
Reconcilers now implement ResourceControllerCommon, which allows
finalizer name and field owner to be used consistently in actuators and
SetupWithManager.
@github-actions github-actions bot added the semver:patch No API change label Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver:patch No API change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant