anthos-service-mesh-packages icon indicating copy to clipboard operation
anthos-service-mesh-packages copied to clipboard

Absolute paths for overlay files are not determined correctly on Darwin

Open alexbrand opened this issue 3 years ago • 2 comments

As documented in the script, the script cds into a temp directory during the installation. For this reason, the script needs to compute the absolute path for overlay files (among other files) to be able to reference them during the installation.

The script currently uses stat -f $file to obtain the absolute file. However, this does not work as expected:

$ pwd
/Users/alexbrand/test
$ ls
foo.yaml
$ stat -f foo.yaml
foo.yaml
$ stat -f non-existent-file.yaml
non-existent-file.yaml

This causes issues when trying to use a custom overlay file, as the istioctl install command cannot find the overlay files.

alexbrand avatar May 24 '21 20:05 alexbrand