-
Notifications
You must be signed in to change notification settings - Fork 13
Don't pivot if identical sha256 #43
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
|
This is failing for me with: Which um...what? This must be something with |
|
This looks good overall! Would be nice to also directly edit the origin so the custom string points to the new image. Basically reframe this not as a special case, but just following through with the operation and being smart about not rebooting like we currently do. Not essential right now though if we're going for a tactical fix. |
| if previousPivot == imgid { | ||
| targetMatched, err := compareOSImageURL(previousPivot, imgid) | ||
| if err != nil { | ||
| glog.Fatalf("%v", err) |
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.
Minor: we pretty liberally use glog.Fatalf everywhere in this codebase. And since we're not actually adding any context here, I'd say just drop error-handling and Fatalf directly in getRefDigest().
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 feels easier to keep the code looking similar to the MCD code - why change it unnecessarily, plus while I get the policy of using Fatalf where it's convenient, why change working code to stop using "proper" error handling?
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.
why change working code to stop using "proper" error handling?
To keep it consistent with the rest of the whole codebase. Not strongly opposed though, just seems out of place. Keeping in sync with the MCD version is a good point though. Maybe add a comment about that?
ca0909a to
cc36276
Compare
|
Added a test, now banging my head against: |
|
https://stackoverflow.com/questions/37284423/glog-flag-redefined-error apparently...man Golang vendor/ stuff is a huge mess in comparison to Cargo. |
|
Hmm, |
cc36276 to
f91621d
Compare
|
Is your setup similar to this: (Similar -> |
|
OK yeah, no idea what was going on before. I just pushed a tweak so that we display errors, now I get: |
|
OK so apparently |
3bd36df to
b26b9e1
Compare
And |
b26b9e1 to
4a065e8
Compare
Yeah, it really is. |
4a065e8 to
e0e0317
Compare
So we can parse container references.
This is a lowering of openshift/machine-config-operator#463 to pivot. We need it for the case of doing an early pivot before the MCD comes up.
e0e0317 to
71d6d77
Compare
|
Rebased, though one open discussion. |
|
Let's get this shipped please? |
|
/lgtm |
|
/cc @yuqi-zhang for syncing over |
|
@ashcrow: GitHub didn't allow me to request PR reviews from the following users: syncing, over, for. Note that only openshift members and repo collaborators can review this PR, and authors cannot review their own PRs. DetailsIn response to this:
Instructions 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. |
This is a lowering of
openshift/machine-config-operator#463
to pivot. We need it for the case of doing an early pivot
before the MCD comes up.