cloud-builders-community icon indicating copy to clipboard operation
cloud-builders-community copied to clipboard

helmfile: fix dockerfile issues

Open jklinect opened this issue 1 year ago • 1 comments

Tried assembling/using this container in a Cloud Build recently, it didn't work as expected when running it:

Fetching cluster endpoint and auth data.
kubeconfig entry generated for acme-kube-cluster.
/builder/helmfile/helmfile: line 1: Not: command not found

(/builder/helmfile/helmfile is a 9-byte file with the contents Not Found)

These changes restore it to functional order:

  • references the correct github repo/URI for the download (helmfile/helmfile)
  • stages the tarball/extracts the helmfile properly
  • added -f to the curl call so that, if the URI moves on the helmfile tarball again, it'll fail the container build
  • update the default versions of both helm/helmfile in the yaml to the latest & greatest

The container both builds and runs as expected now:

Fetching cluster endpoint and auth data.
kubeconfig entry generated for acme-kube-cluster.
Adding repo acme-project https://acme.project.tld
"acme-project" has been added to your repositories
...

jklinect avatar Feb 13 '24 00:02 jklinect

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

google-cla[bot] avatar Feb 13 '24 00:02 google-cla[bot]