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

Add custom metrics #53

Merged
merged 4 commits into from
Jun 26, 2024
Merged

Add custom metrics #53

merged 4 commits into from
Jun 26, 2024

Conversation

rkwmt
Copy link
Contributor

@rkwmt rkwmt commented Jun 20, 2024

  • add the custom metrics cattage_tenant_healthy and cattage_tenant_unhealthy
  • replace deprecated --skip-publish flag of goreleaser with --skip=publish

@rkwmt rkwmt force-pushed the add-custom-metrics branch from 379aac1 to bf053b0 Compare June 20, 2024 00:31
@rkwmt rkwmt requested a review from zoetrope June 20, 2024 02:42
@rkwmt rkwmt marked this pull request as ready for review June 20, 2024 02:43
@@ -89,6 +90,7 @@ func (r *TenantReconciler) Reconcile(ctx context.Context, req ctrl.Request) (res
if err := r.finalize(ctx, tenant); err != nil {
return ctrl.Result{}, fmt.Errorf("failed to finalize: %w", err)
}
r.removeMetrics(tenant)
Copy link
Member

Choose a reason for hiding this comment

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

Move removeMetrics to before calling controllerutil.RemoveFinalizer in finalize function.

This is because once RemoveFinalizer is called, this code may never be called again.

@rkwmt rkwmt requested a review from zoetrope June 26, 2024 06:55
Copy link
Member

@zoetrope zoetrope left a comment

Choose a reason for hiding this comment

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

LGTM

@zoetrope zoetrope merged commit 66ae9c9 into main Jun 26, 2024
10 checks passed
@zoetrope zoetrope deleted the add-custom-metrics branch June 26, 2024 08:30
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.

2 participants