* update go 1.24.6
* fix non-constant format string error
* update golang.org/x/tools@v0.36.0 and github.com/golangci/golangci-lint@v1.64.8 to pass execute golangci-lint
* add a verpose diff output to prow test
* remove pluginator binary version from generated files
* feat: add exec-plugin argument and environment support
Previously, the documentation lead to think that this is working, but
it's not been implemented.
This PR is fixing this
Signed-off-by: Matthias Riegler <matthias.riegler@ankorstore.com>
* chore: disable linting for env var split
Signed-off-by: Matthias Riegler <matthias.riegler@ankorstore.com>
---------
Signed-off-by: Matthias Riegler <matthias.riegler@ankorstore.com>
Assert keeps going after failure, but require immediately fails
the tests, making it easier to find the output related to the test
failure, rather than having to comb through a bunch of subsequent
assertion failures. For equality tests, we may or may not want to
continue, but for error checks we almost always want to immediately
fail the test. Exceptions can be changed as-needed.
* fix containerized function mounts issue
* skip path test on windows
* move test out of temp dir
* update tests to deal with new working dir restrictions
* code review
* exec function working dir is the kustomization that referenced it
* suggested changes
* more code review
* use a field instead of an annotation
* more code review
The previous implementation combined --mount and -v notation
of argument [1] adding :ro to make the read-only mount point.
E.g. the command [2] called docker with the following
params: [3]. As a result instead of the read-only
folder /tmp/source, the read-write folder /tmp/source/:ro/'
is created.
This PR:
1. substitutes ':ro' with correct ',readonly'.
2. changes 'src=' and 'dst=' with 'source=' and 'target=' as
it is stated in the documentation [1]
3. introduces the ability to EXPLICITLY create a mountpoint
with read-write access. To do so it's necessary to add
',rw=true' to the --mount argument
4. corrects UTs adds some additional coverage for added
functionality
[1]
https://docs.docker.com/storage/bind-mounts/#use-a-read-only-bind-mount
[2]
kustomize fn run ./d --mount type=bind,src=$(pwd)/test/,dst=/tmp/source/
[3]
--mount type=bind,src=/home/ubuntu/kpt-functions-catalog/functions/ts/test/,dst=/tmp/source/:ro