Skip to content

Migrate to UBI based go-build#8103

Merged
hjiawei merged 8 commits intomasterfrom
migrate-go-build-ubi
Nov 22, 2023
Merged

Migrate to UBI based go-build#8103
hjiawei merged 8 commits intomasterfrom
migrate-go-build-ubi

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 from 672aaf8 to 5661980 Compare October 20, 2023 02:39
@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
@hjiawei hjiawei requested review from fasaxc and rene-dekker October 24, 2023 01:38
@hjiawei hjiawei force-pushed the migrate-go-build-ubi branch from 7e3f42d to 1ff49c2 Compare October 26, 2023 06:31
@hjiawei hjiawei force-pushed the migrate-go-build-ubi branch 2 times, most recently from 033dcc3 to df656b9 Compare November 9, 2023 00:17
else ifeq ($(ARCH), $(filter $(ARCH),arm64))
CGO_ENABLED=0
REGISTRAR_BUILD_CMD=$(REGISTRAR_TIGERA_BUILD_CMD)
else ifeq ($(ARCH), $(filter $(ARCH),armv7))
Copy link
Contributor

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 requested a review from coutinhop November 9, 2023 21:53
@hjiawei hjiawei force-pushed the migrate-go-build-ubi branch from df656b9 to 9c7c060 Compare November 14, 2023 20:16
@hjiawei hjiawei force-pushed the migrate-go-build-ubi branch 2 times, most recently from d89ea5d to 6b56feb Compare November 17, 2023 23:45
@hjiawei hjiawei force-pushed the migrate-go-build-ubi branch from 6b56feb to b04065a Compare November 20, 2023 19:47
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 force-pushed the migrate-go-build-ubi branch from b04065a to 004a6e3 Compare November 21, 2023 18:14
@hjiawei hjiawei merged commit dcb29a6 into master Nov 22, 2023
@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