GalleyBytes / terraform-operator

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

Error following Quick Start #112

Closed InvisibleFunction closed 2 years ago

InvisibleFunction commented 2 years ago

Hi, I'm trying to follow the Quick Start on the website and am encountering an error.

I'm using MacOS 12.5.1 and minikube v1.27.0. I installed terraform-operator by cloning the repo and using kubectl as documented.

The error I get is:

/usr/local/bin/entrypoint: line 24: wget: command not found

I see that the container image doesn't have wget:

$ docker run -it --entrypoint "wget" ghcr.io/galleybytes/terraform-operator-setup:1.0.0
docker: Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "wget": executable file not found in $PATH: unknown.
ERRO[0000] error waiting for container: context canceled 

It looks like the script seems to require wget under certain circumstances.

isaaguilar commented 2 years ago

@InvisibleFunction I reproduced the missing wget command on the arm64 image, but not the amd64 version. Turns out my base image for the arm architecture did not, in fact, contain wget.

I will rebuild this and hopefully get some better tests before I push out a release. I have to admit, testing arm architecture is a bit of a stretch because all I have is a little raspberry pi.

And thank you for posting the issue!