mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-30 18:01:21 +00:00
Replace pkger with embed.FS compatibility
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
||||
"testing"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
"sigs.k8s.io/kustomize/kyaml/fn/framework/parser"
|
||||
|
||||
"sigs.k8s.io/kustomize/kyaml/fn/framework"
|
||||
"sigs.k8s.io/kustomize/kyaml/fn/framework/command"
|
||||
@@ -35,7 +36,7 @@ func TestResourcePatchTemplate_ComplexSelectors(t *testing.T) {
|
||||
}
|
||||
pt1 := framework.ResourcePatchTemplate{
|
||||
// Apply these rendered patches
|
||||
Templates: framework.StringTemplates(`
|
||||
Templates: parser.TemplateStrings(`
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
@@ -56,7 +57,7 @@ metadata:
|
||||
|
||||
pt2 := framework.ResourcePatchTemplate{
|
||||
// Apply these rendered patches
|
||||
Templates: framework.StringTemplates(`
|
||||
Templates: parser.TemplateStrings(`
|
||||
metadata:
|
||||
annotations:
|
||||
filterPatched: '{{ .A }}'
|
||||
|
||||
Reference in New Issue
Block a user