rules_gitops
rules_gitops copied to clipboard
Add support for running Kustomize on Linux ARM64
Description of the problem / feature request:
k8s_deploy
don't work on Linux aarch64. Currently the Kustomize
binaries supported only are amd64
on both operating systems Linux
and MacOS
.
Feature requests: what underlying problem are you trying to solve with this feature?
If the the OS is Linux
and architecture is aarch64
: download and use kustomize_v4.5.3_linux_arm64.tar.gz
binary; Otherwise download and use kustomize_v4.5.3_linux_amd64.tar.gz
.
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
On Mac M1 machine run Ubuntu VM using UTM. After that try to clone the adobe/rules_gitops and run the example:
cd examples
bazel run //helloworld:mynamespace.show
This error will be shown
bazel-out/aarch64-opt-exec-2B5CBBC6/bin/external/kustomize_bin/kustomize: cannot execute binary file: Exec format error
What operating system are you running Bazel on?
Linux Ubuntu 22.04.3 LTS running as virtual machine on Mac M1 machine using UTM.
What's the output of bazel info release
?
release 6.4.0
If bazel info release
returns "development version" or "(@non-git)", tell us how you built Bazel.
No.
Snippet of the WORKSPACE
file that includes rules_gitops rules.
Here it is
# Adobe rules_gitops
http_archive(
name = "com_adobe_rules_gitops",
sha256 = "109c0a80d7bc45c15cad141d8f8245c93dcd88cb76229ab92600c1fe9c376caa",
strip_prefix = "rules_gitops-0.18.0",
urls = ["https://github.com/adobe/rules_gitops/archive/refs/tags/v0.18.0.tar.gz"],
)
load("@com_adobe_rules_gitops//gitops:deps.bzl", "rules_gitops_dependencies")
rules_gitops_dependencies()
load("@com_adobe_rules_gitops//gitops:repositories.bzl", "rules_gitops_repositories")
rules_gitops_repositories()
Have you found anything relevant by searching the web?
No
Places to look:
- StackOverflow: http://stackoverflow.com/questions/tagged/bazel
- GitHub issues: https://github.com/bazelbuild/bazel/issues
- Slack: https://bazelbuild.slack.com
Any other information, logs, or outputs that you want to share?
Replace these lines with your answer.
If the files are large, upload as attachment or provide link.