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

Dynamically update base image to specific architecture #43

Merged
merged 2 commits into from
Sep 27, 2022

Conversation

mattstam
Copy link
Contributor

The previous update to distroless base image was not compatible with all architectures.

In https://github.com/kubernetes/release/tree/master/images/build/distroless-iptables they publish for each architecture. However, staging-k8s.gcr.io is not publicly accessible. Ran the same make all-push but pointing at a AKS base image CR 'baseosscr.azurecr.io' which can be pulled from anywhere.

ifeq ($(ARCH),ppc64le)
BASEIMAGE ?= baseosscr.azurecr.io/build-image/distroless-iptables-ppc64le:v0.1.2
endif
ifeq ($(ARCH),s390x)
Copy link
Member

@Tatsinnit Tatsinnit Sep 27, 2022

Choose a reason for hiding this comment

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

💡🙏☕️ thank you so much for adding to the review. just idea share but all this could be single if we use: ifneq - we can check the list Params and just supply in ARCH value into baselImage.

Rest looks good if it works for you. 🎉☕️

Example here: https://stackoverflow.com/a/27335439

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Great suggestion! Going to hold off on this for now, as trying to get a new release out asap for arm64 support with distroless-iptables.

Copy link
Member

Choose a reason for hiding this comment

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

Sounds good 👍

Copy link
Member

@Tatsinnit Tatsinnit left a comment

Choose a reason for hiding this comment

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

✅☕️👍

@Tatsinnit Tatsinnit added the enhancement New feature or request label Sep 27, 2022
@mattstam mattstam merged commit ab96677 into master Sep 27, 2022
@mattstam mattstam deleted the mattstam/distroless-iptables-multiarch branch September 27, 2022 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants