-
Notifications
You must be signed in to change notification settings - Fork 0
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
Cache human readable billing entity name in Organization #90
Conversation
21c4624
to
c738ad0
Compare
- Implement /status subresource handling for Organizations - Add controller writing this status
c738ad0
to
9db7b90
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
var be billingv1.BillingEntity | ||
err := r.Client.Get(ctx, client.ObjectKey{Name: org.Spec.BillingEntityRef}, &be) | ||
if err != nil { | ||
return ctrl.Result{}, err |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick: I'm not sure if we want to log if the error is not found
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not found is an important error IMO since we validate that the entity exists on linking them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, maybe you're right. I'm not sure how helpful it really is if we log not found
repleatedly if someone deletes the BE in Odoo, but you're right it's a relevant error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The good thing about returning an error is you get automated backoff.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM overall
Checklist
bug
,enhancement
,documentation
,change
,breaking
,dependency
as they show up in the changelog.