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

Standardize swift-ring finalizer name #231

Conversation

cschwede
Copy link
Collaborator

The swift-ring finalizer is created by a curl API request and not using lib-common. This patch standardizes the finalizer name by adding the missing domain name.

Related: openstack-k8s-operators/lib-common#519

The swift-ring finalizer is created by a curl API request and not using
lib-common. This patch standardizes the finalizer name by adding the
missing domain name.
@cschwede
Copy link
Collaborator Author

/test swift-operator-build-deploy-kuttl

Copy link
Contributor

@stuggi stuggi left a comment

Choose a reason for hiding this comment

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

/lgtm could use helper.GetFinalizer() to get the finalizer for the swiftring, but the current string aligns with the finalizer provided via the lib-common change we did openstack-k8s-operators/lib-common#519 . could do that in a follow up

@@ -255,7 +255,7 @@ func (r *SwiftRingReconciler) reconcileDelete(ctx context.Context, instance *swi
if err == nil {
// This finalizer is directly set when creating the ConfigMap using
// curl within the Job
if controllerutil.RemoveFinalizer(ringConfigMap, "swift-ring/finalizer") {
if controllerutil.RemoveFinalizer(ringConfigMap, "openstack.org/swiftring") {
Copy link
Contributor

Choose a reason for hiding this comment

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

when you bump lib-common you could use helper.GetFinalizer()

@@ -122,7 +122,7 @@ function push() {
'${VERSION}'
"name":"'${CM_NAME}'",
"namespace":"'${NAMESPACE}'",
"finalizers": ["swift-ring/finalizer"],
"finalizers": ["openstack.org/swiftring"],
Copy link
Contributor

Choose a reason for hiding this comment

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

could use helper.GetFinalizer() when render this script template.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good point, indeed! Will change this in a follow up. Thx!

Copy link
Contributor

openshift-ci bot commented Jun 19, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cschwede, stuggi

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

@openshift-merge-bot openshift-merge-bot bot merged commit 252083b into openstack-k8s-operators:main Jun 19, 2024
5 checks passed
@cschwede cschwede deleted the standardize-finalizer branch July 30, 2024 06:53
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.

None yet

2 participants