GalleyBytes / terraform-operator

A Kubernetes CRD to handle terraform operations
http://tf.galleybytes.com
Apache License 2.0
364 stars 47 forks source link

arm64 runner issues #71

Closed isaaguilar closed 2 years ago

isaaguilar commented 2 years ago

There are issues with kubectl binary in the setup-runner and tf-runner. The git binary is missing in the tf-runner builds as well.

kubectl in setup-runner:

stable-configmap-with-key-sa56gdzu-v2-setup-h7zsx
---------------------------
Welcome
whoami: cannot find name for user ID 2000
/runner/tfo_runner.sh: line 30: /usr/local/bin/kubectl: cannot execute binary file: Exec format error

kubectl in tf-runner:

stable-outputs-8o71uu4e-v2-apply-d7w7k
---------------------------
Welcome
null_resource.write_file: Creating...
null_resource.write_file: Provisioning with 'local-exec'...
null_resource.write_file (local-exec): Executing: ["/bin/sh" "-c" "    echo \"this is a file\nand this is file\nlol this isn't read as a var \\${test_file}\" > test_file.txt\n    \n"]
null_resource.write_file: Creation complete after 0s [id=6444362203397429757]

Apply complete! Resources: 1 added, 0 changed, 0 destroyed.

Outputs:

test_file = <<EOT
this is a file
and this is file
lol this isn't read as a var \${test_file}
EOT
/runner/tfo_runner.sh: line 78: /usr/local/bin/kubectl: cannot execute binary file: Exec format error

git in tf-runner:

save-output-test-s2kfer1f-v2-init-cbvvj
---------------------------
Welcome
Initializing modules...
Downloading git::https://github.com/cloudposse/terraform-null-label.git?ref=tags/0.19.2 for this...

Error: Failed to download module

Could not download module "this" (context.tf:21) source code from
"git::https://github.com/cloudposse/terraform-null-label.git?ref=tags/0.19.2":
error downloading
'https://github.com/cloudposse/terraform-null-label.git?ref=tags/0.19.2': git
must be available and on the PATH