Exec plug-in not found error needs to be more descriptive #5676
Labels
kind/bug
Categorizes issue or PR as related to a bug.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
What happened?
I've written multiple alpha exec plugins using bash scripts. They work fine on Linux (debian-12) with kustomize v5.4.1. However running the same build command on macOS with either the homebrew v5.4.1 or the direct download binary version of v5.4.1 it fails with an error about not being able to find the plugin.
It's as if the command line parameter help for those options were compiled in, but the updated logic was not:
Copying an example of one of my generators below that exhibits this problem.
What did you expect to happen?
The macOS build of kustomize runs identically to the Linux version under these options, so that I can test mini versions of my clusters locally on my mac... without looking into a workaround of running kustomize in a Linux docker container.
How can we reproduce it (as minimally and precisely as possible)?
kustomization.yaml
l2AddressPool.yaml
./plugins/docker-l2-address-pool.sh
Run in shell:
Expected output
Actual output
Error: loading generator plugins: failed to load generator: unable to find plugin root - tried: ('<no value>'; homed in $KUSTOMIZE_PLUGIN_HOME), ('<no value>'; homed in $XDG_CONFIG_HOME), ('/Users/kris/.config/kustomize/plugin'; homed in default value of $XDG_CONFIG_HOME), ('/Users/kris/kustomize/plugin'; homed in home directory)
Kustomize version
v5.4.1
Operating system
MacOS
The text was updated successfully, but these errors were encountered: