-
Notifications
You must be signed in to change notification settings - Fork 150
Make status handlers standalone helper funcs #309
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
Make status handlers standalone helper funcs #309
Conversation
jhadvig
left a comment
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.
Two small nits otherwise this is precisely what we need 👍
pkg/console/operator/operator.go
Outdated
| klog.V(4).Infoln("console is in an unmanaged state.") | ||
| if !reflect.DeepEqual(updatedStatus, configs.Operator) { | ||
| c.SyncStatus(updatedStatus) | ||
|
|
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.
nit: extra line
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.
will do.
pkg/console/operator/sync_v400.go
Outdated
| "fmt" | ||
| "os" | ||
|
|
||
| "github.com/openshift/console-operator/pkg/console/status" |
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.
nit: lets put this to the rest of the openshift pkgs
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.
thx!
b5f51d6 to
178899f
Compare
|
Updated! |
|
/retest |
jhadvig
left a comment
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
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: benjaminapetersen, jhadvig The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest
|
|
/retest Please review the full test history for this PR and help us cut down flakes. |
2 similar comments
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
Make status handlers standalone helper funcs that can be used across controllers
This makes them useful now that we want to break off into separate controllers. See:
/assign @jhadvig @spadgett