-
Notifications
You must be signed in to change notification settings - Fork 286
normalize the image building targets #8400
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: master
Are you sure you want to change the base?
normalize the image building targets #8400
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: mainred The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
e5a7448
to
8ad6b7b
Compare
/test pull-cloud-provider-azure-e2e-ccm-vmss-capz |
/hold let's hold the PR until a version is cut from release-1.32 |
it's time to revisit #1145 |
/test pull-cloud-provider-azure-e2e-capz |
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
This PR fixes the post-provider-azure-push-images job failure which is caused by building windows images and out to Linux docker Engine. Fix this by normalizing the image building targets.
docker buildx --output=type=registry
which can reuse the build target but specify OUTPUT_TYPE=registry. pushing images does not relies on building image targets in the future.Besides fixing the image building job issue. we also
$NODE_MANAGER_FULL_IMAGE_NAME
and$ALL_NODE_MANAGER_IMAGES
, and use$(NODE_MANAGER_IMAGE):$(IMAGE_TAG)
specificly to represent the image+tag, and useforeach
to iterate the OS and ARCH to form the image tags for different OS and ARCH.make help
WINDOWS_USE_HOST_PROCESS_CONTAINERS
is set to trueFinally, in order to not break the PR check-in and post-provider-azure-push-images, we introduced
IS_RELEASE
variable. PR check-in in capz ci-build-azure-ccm.sh build and publish amd64 ccm images, but expect a arch-agnostic image inappropriately, we keep this ability and hope to replace it withmake ALL_ARCH.linux=amd64 manifest-controller-manager
after this PR is merged.Tests have been done:
I have tested this change against ado pipeline, pr check-in, and post-provider-azure-push-images job.
ordinary image push
node manager manifest with windows host process contianer image
current capz support
future capz change
capz can still build only minimal amd64-based image for test as it has been doing so far.
release
for ado pipelines,
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: