mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
support for more helm template args (#4926)
* support for more helm template args * move templateArgs and unit tests to api/types * undo package name change * use our own simple helm chart instead of forking one * add argument to AsHelmArgs * code review * lint errors
This commit is contained in:
@@ -8,11 +8,11 @@ import (
|
||||
"runtime"
|
||||
"testing"
|
||||
|
||||
"sigs.k8s.io/kustomize/kyaml/testutil"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
"sigs.k8s.io/kustomize/kyaml/copyutil"
|
||||
"sigs.k8s.io/kustomize/kyaml/filesys"
|
||||
"sigs.k8s.io/kustomize/kyaml/kio/filters"
|
||||
"sigs.k8s.io/kustomize/kyaml/testutil"
|
||||
)
|
||||
|
||||
func TestMerge3_Merge(t *testing.T) {
|
||||
@@ -29,6 +29,7 @@ func TestMerge3_Merge(t *testing.T) {
|
||||
dir := t.TempDir()
|
||||
|
||||
if !assert.NoError(t, copyutil.CopyDir(
|
||||
filesys.MakeFsOnDisk(),
|
||||
filepath.Join(datadir, "dataset1-localupdates"),
|
||||
filepath.Join(dir, "dataset1"))) {
|
||||
t.FailNow()
|
||||
@@ -71,6 +72,7 @@ func TestMerge3_Merge_path(t *testing.T) {
|
||||
dir := t.TempDir()
|
||||
|
||||
if !assert.NoError(t, copyutil.CopyDir(
|
||||
filesys.MakeFsOnDisk(),
|
||||
filepath.Join(datadir, "dataset1-localupdates"),
|
||||
filepath.Join(dir, "dataset1"))) {
|
||||
t.FailNow()
|
||||
@@ -112,6 +114,7 @@ func TestMerge3_Merge_fail(t *testing.T) {
|
||||
dir := t.TempDir()
|
||||
|
||||
if !assert.NoError(t, copyutil.CopyDir(
|
||||
filesys.MakeFsOnDisk(),
|
||||
filepath.Join(datadir, "dataset1-localupdates"),
|
||||
filepath.Join(dir, "dataset1"))) {
|
||||
t.FailNow()
|
||||
|
||||
Reference in New Issue
Block a user