-
Notifications
You must be signed in to change notification settings - Fork 135
Add support for multi platform image #1010
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 support for multi platform image #1010
Conversation
✅ Deploy Preview for gateway-api-inference-extension ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Hi @adarshagrawal38. 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-sigs/prow repository. |
/ok-to-test |
Dockerfile
Outdated
@@ -5,9 +5,11 @@ ARG BASE_IMAGE=gcr.io/distroless/static:nonroot | |||
|
|||
## Multistage build | |||
FROM ${BUILDER_IMAGE} AS builder | |||
ARG TARGETOS |
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 you set the default value to the previous GOOS & GOARCH
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.
yeah sure, pushed in new commit
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.
Oh, you can keep the ARG
s if needed, I was just asking to move the default values to there
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.
ARG parameter is no longger needed
Heya @adarshagrawal38! Any updates here? |
Hi @kfswain, after enabling multi platform build both the images, test cases are getting failed, trying to find some solution for it. |
Makefile
Outdated
@@ -191,9 +191,16 @@ image-build: ## Build the EPP image using Docker Buildx. | |||
$(LOAD) \ | |||
$(IMAGE_BUILD_EXTRA_OPTS) ./ | |||
|
|||
.PHONY: multi-platform-init | |||
multi-platform-init: ## Set up Docker Buildx for multi-platform builds. |
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.
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.
I believe this is here:
https://github.com/kubernetes-sigs/gateway-api-inference-extension/blob/main/cloudbuild.yaml
Makefile
Outdated
.PHONY: image-push | ||
image-push: PUSH=--push ## Build the EPP image and push it to $IMAGE_REPO. | ||
image-push: image-build | ||
image-push: PLATFORMS=linux/amd64,linux/arm64 | ||
image-push: multi-platform-init image-build |
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.
Hi @danehans Please do have a look at updated PR. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: adarshagrawal38, danehans 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 |
@adarshagrawal38, thanks for submitting this PR. To close #685, we need to apply the same workflow for the other binaries, e.g. BBR. Do you mind taking this on? |
Hey @danehans, yeah sure I would be happy to work on it, I will raise pr for BBR and syncer binaries Updated the make file here: #1268 |
@adarshagrawal38 PTAL #1286. See https://kubernetes.slack.com/archives/C08E3RZMT2P/p1754106425527659 for aditional context. |
Partially Fixes #685