Closed grieshaber closed 2 years ago
Would it be possible to cut a release to bring this change into a tagged version? Other google-hosted modules call this module with a version = "~> 3.1"
version constraint, and so it's not possible to bring this change in until a new release is cut.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days
@grieshaber have you had any luck fixing this? I was able to work around it on Alpine by installing bash
before running this whatever commands my kubectl-wrapper
was running. In my use case kubectl-wrapper
was wrapped inside of Cloud Build and Terraform cloud-builder uses Alpine as well.
TL;DR
The null resource for additional components uses a local-exec provider. This means, the executed command will be something like
bin/sh -c <command>
. The scriptscripts/check_components.sh
contains the shebang line#!/bin/bash
. Running on images without a bash, but with a sh (like basic alpine images), the command will fail.Expected behavior
The command script will be exectuted successfully.
Observed behavior
The script exits with exit code 127 - command not found
Terraform Configuration
Terraform Version
Additional information
No response