consul-k8s
consul-k8s copied to clipboard
Backport of build: Create arm64 packages as well into release/1.2.x
Backport
This PR is auto-generated from #3428 to be assessed for backporting due to the inclusion of the label backport/1.2.x.
:rotating_light:
Warning automatic cherry-pick of commits failed. If the first commit failed, you will see a blank no-op commit below. If at least one commit succeeded, you will see the cherry-picked commits up to, not including, the commit where the merge conflict occurred.
The person who merged in the original PR is: @david-yu This person should manually cherry-pick the original PR into a new backport PR, and close this one when the manual backport PR is merged in.
merge conflict error: POST https://api.github.com/repos/hashicorp/consul-k8s/merges: 409 Merge conflict []
The below text is copied from the body of the original PR.
Changes proposed in this PR
During the CRT on-boarding, packaging for other Linux architectures (arm64) was not enabled. This change adds packaging support for those architectures. I've specifically opted not to include 32-bit.
Other related updates:
- To make future support a bit easier, I've enabled the build workflow from releng prefixed branches.
- Using qemu emulation for testing package installs on other architectures, thus allowing us to validate the binaries work as intended
- Minor alteration to the package install tests to use yum instead of rpm
Note: I tried to add 386/arm packages but pivoted away. There's something suspicious with the 386 binary specifically (see comments). Since usage of that architecture is low, I punted.
How I've tested this PR
Please note, these packages have not been extensively tested on their respective platforms. I did update the pipeline to run the smoke test (consul version) against the arm64 packages in an arm64 user-space. So I think it's in a good place.
How I expect reviewers to test this PR
Download builds and test in the same manner existing binaries are tested. Docker containers would be sufficient.
Checklist
- [x] ~~Tests added~~
- [x] CHANGELOG entry added
Related
See #1132. Related to hashicorp/releng-support#178.
Overview of commits
- affc6311fe27e33e8c5e2648a8b3a89819b5a282 - b791475499da047f8ec9f5f8fde7aa8e12989dd9 - dcff86190fb484cdecd1786027aeaa3a0b3f6b5f
This probably needs to be manually backported as the automatic backport failed.