Reset openapi in Filter and show use of pkger with filepath

This commit is contained in:
Katrina Verey
2021-05-13 14:46:34 -07:00
parent 0fdf0f825f
commit 53c87a32e9
3 changed files with 36 additions and 18 deletions

View File

@@ -9,7 +9,6 @@ import (
"log"
"path/filepath"
"github.com/markbates/pkger"
"sigs.k8s.io/kustomize/kyaml/errors"
"sigs.k8s.io/kustomize/kyaml/fn/framework"
"sigs.k8s.io/kustomize/kyaml/fn/framework/command"
@@ -222,7 +221,7 @@ func ExampleTemplateProcessor_generate_files() {
// Templates
ResourceTemplates: []framework.ResourceTemplate{{
Templates: framework.TemplatesFromFile(
pkger.Include("/fn/framework/testdata/example/templatefiles/deployment.template"),
filepath.FromSlash("/fn/framework/testdata/example/templatefiles/deployment.template"),
),
}},
}