-
Notifications
You must be signed in to change notification settings - Fork 213
Changes to verify package in preparation for move to library-go #413
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
Changes to verify package in preparation for move to library-go #413
Conversation
5214063 to
e792735
Compare
|
/assign @wking |
e792735 to
2bde02f
Compare
2bde02f to
f16cb2d
Compare
|
@wking I went back to my original approach which adds a method LoadConfigMapVerifierDataFromManifest, to be used by oc, and allows the prefix constants to remain internal. Note that I added k8s decode/encode to util which is used by new method. |
|
/retest |
dd8df78 to
eeb33e9
Compare
|
/hold |
bb23989 to
f929d03
Compare
|
/unhold |
f929d03 to
41c79e9
Compare
|
/retest |
b39b35f to
33b8eb8
Compare
|
/test unit |
|
/retest |
1 similar comment
|
/retest |
33b8eb8 to
d1d12ab
Compare
|
/retest |
vrutkovs
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
The CVO verify package will be moved to library-go for reuse by 'oc adm release mirror' and CVO. Changes are being made here in CVO before the move to provide a cleaner move to library-go. Logic to create verifier was broken out into a new configmap method NewFromManifests. This method uses k8s encoding and as a result existing test cases had to be changed from creating manifests from from declarations within the test cases itself to creating them from config map files. In this manner the lib/Manifest object is properly created with its Raw bytes field populated.
d1d12ab to
472cc1b
Compare
|
/retest |
1 similar comment
|
/retest |
|
/test unit |
|
One unit test I don't understand, otherwise looks good to me. Pull the hold if I'm just confused, or if you want to punt a fix to follow-up work. /lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jottofar, wking 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 |
|
/unhold |
Changes to verify package in preparation for move to library-go
The CVO verify package will be moved to library-go for reuse by 'oc adm release mirror' and CVO. Changes are being made here in CVO before the move to provide a cleaner move to library-go.
Logic to create verifier was broken out into a new configmap method NewFromManifests. This method uses k8s encoding and as a result existing test cases had to be changed from creating manifests from from declarations within the test cases itself to creating them from config map files. In this manner the lib/Manifest object is properly created with its Raw bytes field populated.