-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Various reconciler cleanups #2784
Various reconciler cleanups #2784
Conversation
This PR cannot be merged: expecting exactly one kind/ label Available
|
The following is the coverage report on the affected files.
|
3939b93
to
c0b186c
Compare
The following is the coverage report on the affected files.
|
This cleans up a number of things now that we are on `// +genreconciler`.
c0b186c
to
0bebbf1
Compare
/assign @vdemeester @afrittoli @imjasonh |
The following is the coverage report on the affected files.
|
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
😻
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.
Nice, thank you!
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: afrittoli 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 |
@@ -61,7 +64,7 @@ func (c *Reconciler) createAffinityAssistants(wb []v1alpha1.WorkspaceBinding, pr | |||
errs = append(errs, fmt.Errorf("failed to create StatefulSet %s: %s", affinityAssistantName, err)) | |||
} | |||
if err == nil { | |||
c.Logger.Infof("Created StatefulSet %s in namespace %s", affinityAssistantName, namespace) | |||
logger.Infof("Created StatefulSet %s in namespace %s", affinityAssistantName, namespace) |
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.
hey @mattmoor does this mean the reconciler no longer has a logger object or just that we shouldn't use it?
Changes
/kind cleanup
This cleans up
reconciler.Base
, most of which is defunct now thanks to the// +genreconciler
framework. As part of this, some fields are inlined into theFooRun
reconcilers, and others (e.g. logger, recorder) are picked up off of the context.Depends on #2771