Merge pull request #1909 from bzub/1908-plugin_test_path

Detect path to plugins from krusty tests.
This commit is contained in:
Jeff Regan
2019-12-11 10:24:14 -08:00
committed by GitHub

View File

@@ -37,6 +37,16 @@ func DeterminePluginSrcRoot(fSys filesys.FileSystem) (string, error) {
"source directory", fSys, []konfig.NotedFunc{
{
Note: "relative to unit test",
F: func() string {
return filepath.Clean(
filepath.Join(
os.Getenv("PWD"),
"..", "..",
konfig.RelPluginHome))
},
},
{
Note: "relative to unit test (internal pkg)",
F: func() string {
return filepath.Clean(
filepath.Join(