-
Notifications
You must be signed in to change notification settings - Fork 462
OCPBUGS-63750: fix Go build tag behavior #5494
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
base: main
Are you sure you want to change the base?
Conversation
|
@cheesesashimi: This pull request references Jira Issue OCPBUGS-63750, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. 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 openshift-eng/jira-lifecycle-plugin repository. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cheesesashimi 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 |
5b31c18 to
bea27f9
Compare
|
@cheesesashimi: The following tests failed, say
Full PR test history. Your PR dashboard. 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-sigs/prow repository. I understand the commands that are listed here. |
- What I did
The MCO was being built with the Go build tag
containers_image_openpgpwhich specifically uses the OpenPGP implementation. According to the containers/image repo, the gpgme implementation for working with image signatures is the preferred implementation.While investigating this, I thought to search throughout our vendored dependencies for each of the build tags that the MCO uses in order to determine whether they were still needed. As it turns out, the only build tag we were using was the OpenPGP one referenced above. This means that we can mostly remove all of the currently-used build tags and consolidate where and how they are being set.
To do that, this PR does the following:
Makefile.hack/build-go.shuses the tags provided to it from theMakefile.TAGS=scosis set for building the MCO for OKD, that the tag is passed through from the Makefile into thehack/build-go.shscript and honored.- How to verify it
There should be no changes in the MCOs behavior or function that I am aware of. Our test suite should be able to confirm this.
To verify that the MCO is being built with the correct implementation, one can do the following:
gpgme-devellibrary installed. See: https://github.com/containers/container-libs/tree/main/image#building for more info. Note: The OCP Go builder image has this library preinstalled so no additional change is necessary there.make imageto build the MCO image.podman run -it --rm -v "$PWD:/host:z" localhost/machine-config-operator:latest cp /usr/bin/machine-config* /host.- Description for the changelog
Ensure the MCO uses gpgme