-
Notifications
You must be signed in to change notification settings - Fork 150
Operator status revisions #139
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
Operator status revisions #139
Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: benjaminapetersen 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 |
|
|
||
| // do we need the if(configChanged) update bits? | ||
| operatorConfigOut, consoleConfigOut, configChanged, err := sync_v400(c, operatorConfig, consoleConfig) | ||
| _, _, _, err := sync_v400(c, operatorConfig, consoleConfig) |
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.
I didn't notice this change, I need to look into it a bit.
| @@ -0,0 +1,167 @@ | |||
| package operator | |||
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.
These are pretty verbose / repetitive.
|
|
||
| toUpdate = toUpdate || depChanged | ||
|
|
||
| // at this point, we should not be failing anymore |
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.
Does this now make sense? Thinking through it.
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.
it does, I'm counting on it as well
|
A test: shows: Which is interesting, and Which seems promising. |
|
/retest |
1 similar comment
|
/retest |
|
Fail message: |
|
/retest |
|
|
||
| toUpdate = toUpdate || depChanged | ||
|
|
||
| // at this point, we should not be failing anymore |
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.
it does, I'm counting on it as well
pkg/console/operator/sync_v400.go
Outdated
|
|
||
| // but we may be in a transitional state, if any of the above resources changed | ||
| if toUpdate { | ||
| co.operatorStatusProgressing(operatorConfig) |
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.
was debugging a bit more and figured our that even if none of the resources are updated, here the toUpdate will be set to true, which shouldn't happen if nothing gets updated, right ?
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.
Nope, if nothing is updated, we want it false. So that is definitely something worth tracking down.
|
Just pasting again.... So this error:
Means we need |
|
/retest the brand fix PR went in. |
|
Prefer #142 for tidiness (squashed verison of this) |
|
@benjaminapetersen: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
|
Closing, #142 has a few other necessary components for operator status, such as renumbering manifests, etc. |

Extracted a bunch of operator status updates out into separate named functions. Was a bit pedantic about naming, but hopefully it helps understand the flow and see if we can tease out any bugs.
@jhadvig