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

Migrate to UBI based go-build #8103

Merged
merged 8 commits into from
Nov 22, 2023
Merged

Migrate to UBI based go-build #8103

merged 8 commits into from
Nov 22, 2023

Conversation

hjiawei
Copy link
Contributor

@hjiawei hjiawei commented Oct 11, 2023

Description

This PR contains the following changes:

  • Bump calico/go-build to v0.90 which is based off RedHat UBI.
  • 32 bit linux/arm platform is dropped because Kubernetes also dropped it since v1.27.
  • Update LLVM to v16 (from v15). The is the default in UBI 8.9.
  • A few minor README and Makefile cleanups.

Related issues/PRs

Todos

  • Tests
  • Documentation
  • Release note

Release Note

N/A

Reminder for the reviewer

Make sure that this PR has the correct labels and milestone set.

Every PR needs one docs-* label.

  • docs-pr-required: This change requires a change to the documentation that has not been completed yet.
  • docs-completed: This change has all necessary documentation completed.
  • docs-not-required: This change has no user-facing impact and requires no docs.

Every PR needs one release-note-* label.

  • release-note-required: This PR has user-facing changes. Most PRs should have this label.
  • release-note-not-required: This PR has no user-facing changes.

Other optional labels:

  • cherry-pick-candidate: This PR should be cherry-picked to an earlier release. For bug fixes only.
  • needs-operator-pr: This PR is related to install and requires a corresponding change to the operator.

@marvin-tigera marvin-tigera added this to the Calico v3.27.0 milestone Oct 11, 2023
@marvin-tigera marvin-tigera added release-note-required Change has user-facing impact (no matter how small) docs-pr-required Change is not yet documented labels Oct 11, 2023
@hjiawei hjiawei force-pushed the migrate-go-build-ubi branch 5 times, most recently from 2b6cb12 to 672aaf8 Compare October 16, 2023 18:00
@hjiawei hjiawei force-pushed the migrate-go-build-ubi branch 2 times, most recently from 3d7a251 to 7e3f42d Compare October 20, 2023 03:12
@hjiawei hjiawei marked this pull request as ready for review October 24, 2023 01:38
@hjiawei hjiawei requested a review from a team as a code owner October 24, 2023 01:38
metadata.mk Outdated Show resolved Hide resolved
felix/Makefile Outdated Show resolved Hide resolved
lib.Makefile Outdated Show resolved Hide resolved
@hjiawei hjiawei force-pushed the migrate-go-build-ubi branch 2 times, most recently from 033dcc3 to df656b9 Compare November 9, 2023 00:17
@@ -107,10 +105,6 @@ endif
else ifeq ($(ARCH), $(filter $(ARCH),arm64))
CGO_ENABLED=0
REGISTRAR_BUILD_CMD=$(REGISTRAR_TIGERA_BUILD_CMD)
else ifeq ($(ARCH), $(filter $(ARCH),armv7))
Copy link
Collaborator

Choose a reason for hiding this comment

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

@hjiawei are we going to stop publishing armv7 images?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That is correct. Kubernetes dropped 32bit arm support from v1.27+ and this is communicated/agreed with PM.

@hjiawei hjiawei force-pushed the migrate-go-build-ubi branch 2 times, most recently from d89ea5d to 6b56feb Compare November 17, 2023 23:45
k8s dropped 32 bit linux/arm support from v1.27+ [1].

[1] kubernetes/kubernetes#115742
We use $BINARY_NAME-$ARCH format in Calico builds and packaging
containers. The hard link targets in Makefile are not used and can be
removed. When building multiarchs, new links without $ARCH in the
binary name will overwrite existing ones which may cause unexpected
behaviors.
@hjiawei hjiawei merged commit dcb29a6 into master Nov 22, 2023
2 checks passed
@hjiawei hjiawei deleted the migrate-go-build-ubi branch November 22, 2023 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs-pr-required Change is not yet documented release-note-required Change has user-facing impact (no matter how small)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants