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

update mariadb to include finalizer secret logic #393

Merged

Conversation

zzzeek
Copy link
Contributor

@zzzeek zzzeek commented Mar 13, 2024

this PR updates mariadb-operator to include [1], which will add / remove finalizers on the Secret objects that are associated with MariaDBAccount objects. This ensures that GetDatabaseByNameAndAccount will successfully locate a MariaDBDatabase/MariaDBAccount/Secret trio, rather than returning not found, allowing Database.DeleteFinalizer() to be called when a resource is in reconcile delete.

[1] openstack-k8s-operators/mariadb-operator#210

Copy link
Contributor

@abays abays left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

Copy link
Contributor

openshift-ci bot commented Mar 19, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: abays, zzzeek

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

this PR updates mariadb-operator to include [1], which will
add / remove finalizers on the Secret objects that are associated with
MariaDBAccount objects.  This ensures that GetDatabaseByNameAndAccount
will successfully locate a MariaDBDatabase/MariaDBAccount/Secret trio,
rather than returning not found, allowing ``Database.DeleteFinalizer()``
to be called when a resource is in reconcile delete.

[1] openstack-k8s-operators/mariadb-operator#210
Copy link
Contributor

openshift-ci bot commented Apr 2, 2024

New changes are detected. LGTM label has been removed.

@zzzeek
Copy link
Contributor Author

zzzeek commented Apr 2, 2024

keystone is still behind, this needs to merge

@abays abays added the lgtm label Apr 2, 2024
@abays
Copy link
Contributor

abays commented Apr 2, 2024

@zzzeek Looks like KUTTL tests need to be updated:

case.go:366: resource KeystoneAPI:keystone-kuttl-tests/keystone: .metadata.finalizers: slice length mismatch: 2 != 3

@zzzeek
Copy link
Contributor Author

zzzeek commented Apr 2, 2024

yup

@zzzeek
Copy link
Contributor Author

zzzeek commented Apr 2, 2024

that failure is a little bit odd. i will add that finalizer and see if it helps. but...might need to understand what's going on there

@zzzeek
Copy link
Contributor Author

zzzeek commented Apr 2, 2024

i think that finalizer is not supposed to be there. let me do a retest and if that fails ill try to run it all locally

@zzzeek
Copy link
Contributor Author

zzzeek commented Apr 2, 2024

/retest

@openshift-merge-bot openshift-merge-bot bot merged commit e5f8627 into openstack-k8s-operators:main Apr 2, 2024
6 checks passed
@zzzeek
Copy link
Contributor Author

zzzeek commented Apr 2, 2024

Ok I guess the previous fail was a timeout situation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants