Skip to content

Updated scripts that define `helm` as a function to call the `which` command by absolute path

Chris Wheeler requested to merge chwheele/sylva-core:which_absolute_path into main

What does this MR do and why?

On Fedora and derivative distros, which is aliased as a function that includes the --read-functions argument, which has the effect of causing the helm() function to reference itself (i.e. helm() calls "which helm", which returns helm(), which calls "which helm", ad infinitum). Scripts that define the helm() function were updated to call which by absolute path to avoid the circular reference.

Related reference(s)

N/A

Test coverage

The modification was required to get tools/kind/bootstrap-cluster.sh working on Fedora/RHEL, and was tested in the process of bootstrapping Sylva in a kind cluster on that platform.

Merge request reports