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

Add support for running Kustomize on Linux ARM64 #177

Open
ysinjab opened this issue May 10, 2024 · 0 comments
Open

Add support for running Kustomize on Linux ARM64 #177

ysinjab opened this issue May 10, 2024 · 0 comments

Comments

@ysinjab
Copy link
Contributor

ysinjab commented May 10, 2024

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:

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant