-
Notifications
You must be signed in to change notification settings - Fork 112
Add status updates #36
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
Conversation
pkg/operator2/starter.go
Outdated
| []configv1.ObjectReference{ | ||
| {Group: "authentication.operator.openshift.io", Resource: "authenticationoperatorconfig", Name: globalConfigName}, | ||
| {Resource: "namespaces", Name: targetName}, // TODO: fix after rename PR? | ||
| {Resource: "namespaces", Name: "openshift-core-operators"}, // TODO: fix after rename PR? |
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.
Do we need more resources here?
|
The weird order of commits is caused by Github ordering them based on their date rather than the |
|
/retest |
|
/hold Wait for #34 |
|
Rebased on top of current master. |
|
Rebased |
|
/hold cancel |
bd505e5 to
b38d9e2
Compare
|
/test e2e-aws |
b38d9e2 to
5772cff
Compare
|
/retest |
5772cff to
2b96b78
Compare
|
For some reason I'm seeing |
99bd92d to
b9197f8
Compare
|
/test e2e-aws |
|
/retest |
3 similar comments
|
/retest |
|
/retest |
|
/retest |
db68724 to
03fd577
Compare
|
/retest |
1 similar comment
|
/retest |
|
/test e2e-aws-operator |
| } | ||
|
|
||
| // TODO update states and handle ClusterOperator spec/status | ||
| if statusErr := c.setAvailableStatus(operatorConfig); statusErr != nil { |
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.
This is wholly insufficient - ex: if the deployment fails to rollout we would be stating everything is fine.
|
I just did an initial pass review. This is not ready. |
This adds a library-go controller for status changes and also adds status failure reporting in auth operator Sync() if an error occured in the lower level machinery. TODO: add a clusteroperator manifest to be deployed by CVO once we are sure we are not breaking anything
03fd577 to
d89709a
Compare
|
Sorry about the sorry state of the PR, I think I originally set it up so that we can build up on it, but even back then it was not very complete. Most comments are fixed, yet the most important still stands and that's the one about when we should report as available. I'll need to see about that. |
| clusterOperatorStatus := status.NewClusterOperatorStatusController( | ||
| targetName, | ||
| []configv1.ObjectReference{ | ||
| {Group: operatorv1.GroupName, Resource: "authentications", Name: globalConfigName}, |
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.
Also add the infrastructure top level config per #79
|
/retest |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ericavonb, stlaz 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 e2e-aws-operator |
|
/retest |
Adds a
library-gocontroller for status changes and alsoadds status failure reporting in auth operator Sync() if an error
occured in the lower level machinery.
Based on current
library-goandkube-apiserver-operatorcode.