Skip to content
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 controller-tools to go.mod for downstream build #232

Merged
merged 1 commit into from Nov 23, 2022

Conversation

cpmeadors
Copy link
Contributor

@cpmeadors cpmeadors commented Nov 23, 2022

- Description of the problem which is fixed/What is the use case
Our downstream build process of the operator image has not network access so we need to use the go module caching feature to run controller-gen directly rather than downloading the binary

Required for KATA-1800

- What I did
$ go get sigs.k8s.io/controller-tools/cmd/controller-gen@v0.8.0

- How to verify it
$ go mod download
$ go run sigs.k8s.io/controller-tools/cmd/controller-gen object:headerFile="hack/boilerplate.go.txt" paths="./..."
THis should generate the same files as running make generate does.

- Description for the changelog

@openshift-ci openshift-ci bot requested review from gkurz and pmores November 23, 2022 12:57
@openshift-ci
Copy link

openshift-ci bot commented Nov 23, 2022

@cpmeadors: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/sandboxed-containers-operator-e2e 21d42ef link false /test sandboxed-containers-operator-e2e

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

Copy link
Contributor

@jensfr jensfr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! Thank you @cpmeadors

Copy link
Member

@gkurz gkurz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not exactly sure how this will be leveraged downstream but the change doesn't look harmful for upstream builds. I hope it will do the trick @cpmeadors !

@gkurz gkurz merged commit a853dc2 into openshift:main Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants