-
Notifications
You must be signed in to change notification settings - Fork 212
Add: autoupdate controller #11
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
Add: autoupdate controller #11
Conversation
|
/hold |
pkg/autoupdate/autoupdate.go
Outdated
| // 5ms, 10ms, 20ms, 40ms, 80ms, 160ms, 320ms, 640ms, 1.3s, 2.6s, 5.1s, 10.2s, 20.4s, 41s, 82s | ||
| maxRetries = 15 | ||
|
|
||
| workQueueKey = "%s/%s" |
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: doesn't feel this const is very useful and looks like it's only used in one place...
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.
👍
|
New commits lgtm |
pkg/autoupdate/autoupdate.go
Outdated
| } | ||
| cvoststatus, ok := obji.(*v1.CVOStatus) | ||
| if !ok { | ||
| return fmt.Errorf("expected *v1.CVOStatus found %t", obji) |
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 should be %T
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, thanks
5ff6e33 to
437d5a3
Compare
|
/hold cancel @yifan-gu PTAL |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: abhinavdahiya, yifan-gu 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 |
This seems to have been copy-pasted from the machine-config operator in 6c8f725 (cvo: refactor to informers, 2018-08-14, openshift#7) and then from there over to the auto-update package with ad4bd6c (pkg: add autoupdate ctrl, 2018-08-22, openshift#11). Update to generic wording that is less likely to go stale.
This seems to have been copy-pasted from the machine-config operator in 6c8f725 (cvo: refactor to informers, 2018-08-14, openshift#7) and then from there over to the auto-update package with ad4bd6c (pkg: add autoupdate ctrl, 2018-08-22, openshift#11). Update to generic wording that is less likely to go stale.
This seems to have been copy-pasted from the machine-config operator in 6c8f725 (cvo: refactor to informers, 2018-08-14, openshift#7) and then from there over to the auto-update package with ad4bd6c (pkg: add autoupdate ctrl, 2018-08-22, openshift#11). Update to generic wording that is less likely to go stale.
autoupdate controller sets the DesiredUpdate for CVOConfig to the greatest available version from OperatorStatus AvailabeUpdates.
Requires #10
/cc @crawford @smarterclayton
/assign @crawford @smarterclayton