diff --git a/pkg/kyverno/common/common.go b/pkg/kyverno/common/common.go index 62f09775bc..1a3188d79c 100644 --- a/pkg/kyverno/common/common.go +++ b/pkg/kyverno/common/common.go @@ -334,7 +334,7 @@ func GetVariable(variablesString, valuesFile string, fs billy.Filesystem, isGit } yamlFile, err = ioutil.ReadAll(filep) } else { - yamlFile, err = ioutil.ReadFile(valuesFile) + yamlFile, err = ioutil.ReadFile(filepath.Join(policyresoucePath, valuesFile)) } if err != nil {