-
Notifications
You must be signed in to change notification settings - Fork 228
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
Parametrize CGO_ENABLED argument for container build #1391
Parametrize CGO_ENABLED argument for container build #1391
Conversation
✅ Deploy Preview for kubernetes-sigs-kueue ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Welcome @anishasthana! |
Hi @anishasthana. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
/ok-to-test /release-note-edit
|
Dockerfile
Outdated
@@ -3,6 +3,7 @@ ARG BASE_IMAGE | |||
# Build the manager binary | |||
FROM --platform=${BUILDPLATFORM} ${BUILDER_IMAGE} as builder | |||
|
|||
ARG CGO_ENABLED_PARAMETER |
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.
can it be the same name, just CGO_ENABLED
?
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.
Good point -- updated!
Makefile
Outdated
@@ -53,6 +53,7 @@ ARTIFACTS ?= $(PROJECT_DIR)/bin | |||
# Refer to https://github.com/GoogleContainerTools/distroless for more details | |||
BASE_IMAGE ?= gcr.io/distroless/static:nonroot | |||
BUILDER_IMAGE ?= golang:$(GO_VERSION) | |||
CGO_ENABLED_PARAMETER ?= 0 |
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.
same question
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.
Good point -- updated!
Signed-off-by: Anish Asthana <anishasthana1@gmail.com>
6b5d276
to
bf89442
Compare
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
/approve
LGTM label has been added. Git tree hash: 28653672c5b57555a0b5a398c534b7b62d1ed690
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alculquicondor, anishasthana The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind feature
What this PR does / why we need it:
This PR parametrize's the CGO_ENABLED argument for the Kueue image build in both the dockerfile and makefile. This will make it easier for other consumers of Kueue to customize the image as needed.
Which issue(s) this PR fixes:
Fixes #1382
Special notes for your reviewer: