|
|
|
@ -270,6 +270,7 @@ func TestMergeValuesExplicitEmptyOverrides(t *testing.T) {
|
|
|
|
{
|
|
|
|
{
|
|
|
|
name: "empty map from values file",
|
|
|
|
name: "empty map from values file",
|
|
|
|
setup: func(t *testing.T) *Options {
|
|
|
|
setup: func(t *testing.T) *Options {
|
|
|
|
|
|
|
|
t.Helper()
|
|
|
|
dir := t.TempDir()
|
|
|
|
dir := t.TempDir()
|
|
|
|
file := filepath.Join(dir, "values.yaml")
|
|
|
|
file := filepath.Join(dir, "values.yaml")
|
|
|
|
require.NoError(t, os.WriteFile(file, []byte("key: {}\n"), 0o600))
|
|
|
|
require.NoError(t, os.WriteFile(file, []byte("key: {}\n"), 0o600))
|
|
|
|
@ -278,7 +279,8 @@ func TestMergeValuesExplicitEmptyOverrides(t *testing.T) {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
name: "empty map from set flag",
|
|
|
|
name: "empty map from set flag",
|
|
|
|
setup: func(_ *testing.T) *Options {
|
|
|
|
setup: func(t *testing.T) *Options {
|
|
|
|
|
|
|
|
t.Helper()
|
|
|
|
return &Options{Values: []string{"key={}"}}
|
|
|
|
return &Options{Values: []string{"key={}"}}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|