-
Notifications
You must be signed in to change notification settings - Fork 138
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
Report TigeraStatus for tiers #3130
Conversation
fe22139
to
d49ca9e
Compare
d49ca9e
to
4796bac
Compare
@@ -133,6 +133,9 @@ func (r *ReconcileTiers) Reconcile(ctx context.Context, request reconcile.Reques | |||
reqLogger := log.WithValues("Request.Namespace", request.Namespace, "Request.Name", request.Name) | |||
reqLogger.Info("Reconciling Tiers") | |||
|
|||
// Mark CR as found even though this controller is not associated with a CR, as OnCRFound() enables TigeraStatus reporting. | |||
r.status.OnCRFound() |
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.
So we were already attempting to report a tier status, this was all that prevented it from actually being reported?
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.
Yeah, the controller was already following the pattern of reporting a degraded status before failing the reconcile, perhaps from copy-paste. It was intentional for the controller to not report to TigeraStatus though
Also fixes a UT flake.
For PR author
make gen-files
make gen-versions
For PR reviewers
A note for code reviewers - all pull requests must have the following:
kind/bug
if this is a bugfix.kind/enhancement
if this is a a new feature.enterprise
if this PR applies to Calico Enterprise only.