parent
6ce6b94b35
commit
d6e6035a62
|
|
@ -415,7 +415,7 @@ my-release 4 Fri Nov 1 08:40:07 2019 DEPLOYED raw-3.1.0 3.1.0 def
|
||||||
},
|
},
|
||||||
error: ``,
|
error: ``,
|
||||||
files: map[string]string{
|
files: map[string]string{
|
||||||
"/path/to/helmfile.yaml": `
|
"/path/to/helmfile.yaml.gotmpl": `
|
||||||
{{ $mark := "a" }}
|
{{ $mark := "a" }}
|
||||||
|
|
||||||
releases:
|
releases:
|
||||||
|
|
@ -464,7 +464,7 @@ my-release 4 Fri Nov 1 08:40:07 2019 DEPLOYED raw-3.1.0 3.1.0 def
|
||||||
t.Run("bad --selector", func(t *testing.T) {
|
t.Run("bad --selector", func(t *testing.T) {
|
||||||
check(t, testcase{
|
check(t, testcase{
|
||||||
files: map[string]string{
|
files: map[string]string{
|
||||||
"/path/to/helmfile.yaml": `
|
"/path/to/helmfile.yaml.gotmpl": `
|
||||||
{{ $mark := "a" }}
|
{{ $mark := "a" }}
|
||||||
|
|
||||||
releases:
|
releases:
|
||||||
|
|
|
||||||
|
|
@ -146,7 +146,7 @@ func TestApply_2(t *testing.T) {
|
||||||
skipNeeds: true,
|
skipNeeds: true,
|
||||||
},
|
},
|
||||||
files: map[string]string{
|
files: map[string]string{
|
||||||
"/path/to/helmfile.yaml": `
|
"/path/to/helmfile.yaml.gotmpl": `
|
||||||
{{ $mark := "a" }}
|
{{ $mark := "a" }}
|
||||||
|
|
||||||
releases:
|
releases:
|
||||||
|
|
@ -199,7 +199,7 @@ my-release 4 Fri Nov 1 08:40:07 2019 DEPLOYED raw-3.1.0 3.1.0 def
|
||||||
skipNeeds: true,
|
skipNeeds: true,
|
||||||
},
|
},
|
||||||
files: map[string]string{
|
files: map[string]string{
|
||||||
"/path/to/helmfile.yaml": `
|
"/path/to/helmfile.yaml.gotmpl": `
|
||||||
{{ $mark := "a" }}
|
{{ $mark := "a" }}
|
||||||
|
|
||||||
releases:
|
releases:
|
||||||
|
|
@ -250,7 +250,7 @@ releases:
|
||||||
},
|
},
|
||||||
error: ``,
|
error: ``,
|
||||||
files: map[string]string{
|
files: map[string]string{
|
||||||
"/path/to/helmfile.yaml": `
|
"/path/to/helmfile.yaml.gotmpl": `
|
||||||
{{ $mark := "a" }}
|
{{ $mark := "a" }}
|
||||||
|
|
||||||
releases:
|
releases:
|
||||||
|
|
@ -306,7 +306,7 @@ my-release 4 Fri Nov 1 08:40:07 2019 DEPLOYED raw-3.1.0 3.1.0 def
|
||||||
},
|
},
|
||||||
error: ``,
|
error: ``,
|
||||||
files: map[string]string{
|
files: map[string]string{
|
||||||
"/path/to/helmfile.yaml": `
|
"/path/to/helmfile.yaml.gotmpl": `
|
||||||
{{ $mark := "a" }}
|
{{ $mark := "a" }}
|
||||||
|
|
||||||
releases:
|
releases:
|
||||||
|
|
@ -359,7 +359,7 @@ my-release 4 Fri Nov 1 08:40:07 2019 DEPLOYED raw-3.1.0 3.1.0 def
|
||||||
},
|
},
|
||||||
error: ``,
|
error: ``,
|
||||||
files: map[string]string{
|
files: map[string]string{
|
||||||
"/path/to/helmfile.yaml": `
|
"/path/to/helmfile.yaml.gotmpl": `
|
||||||
{{ $mark := "a" }}
|
{{ $mark := "a" }}
|
||||||
|
|
||||||
releases:
|
releases:
|
||||||
|
|
@ -415,7 +415,7 @@ my-release 4 Fri Nov 1 08:40:07 2019 DEPLOYED raw-3.1.0 3.1.0 def
|
||||||
},
|
},
|
||||||
error: ``,
|
error: ``,
|
||||||
files: map[string]string{
|
files: map[string]string{
|
||||||
"/path/to/helmfile.yaml": `
|
"/path/to/helmfile.yaml.gotmpl": `
|
||||||
{{ $mark := "a" }}
|
{{ $mark := "a" }}
|
||||||
|
|
||||||
releases:
|
releases:
|
||||||
|
|
|
||||||
|
|
@ -142,7 +142,7 @@ func TestSync(t *testing.T) {
|
||||||
skipNeeds: true,
|
skipNeeds: true,
|
||||||
},
|
},
|
||||||
files: map[string]string{
|
files: map[string]string{
|
||||||
"/path/to/helmfile.yaml": `
|
"/path/to/helmfile.yaml.gotmpl": `
|
||||||
{{ $mark := "a" }}
|
{{ $mark := "a" }}
|
||||||
|
|
||||||
releases:
|
releases:
|
||||||
|
|
@ -191,7 +191,7 @@ my-release 4 Fri Nov 1 08:40:07 2019 DEPLOYED raw-3.1.0 3.1.0 def
|
||||||
skipNeeds: true,
|
skipNeeds: true,
|
||||||
},
|
},
|
||||||
files: map[string]string{
|
files: map[string]string{
|
||||||
"/path/to/helmfile.yaml": `
|
"/path/to/helmfile.yaml.gotmpl": `
|
||||||
{{ $mark := "a" }}
|
{{ $mark := "a" }}
|
||||||
|
|
||||||
releases:
|
releases:
|
||||||
|
|
@ -249,7 +249,7 @@ my-release 4 Fri Nov 1 08:40:07 2019 DEPLOYED raw-3.1.0 3.1.0 def
|
||||||
},
|
},
|
||||||
error: ``,
|
error: ``,
|
||||||
files: map[string]string{
|
files: map[string]string{
|
||||||
"/path/to/helmfile.yaml": `
|
"/path/to/helmfile.yaml.gotmpl": `
|
||||||
{{ $mark := "a" }}
|
{{ $mark := "a" }}
|
||||||
|
|
||||||
releases:
|
releases:
|
||||||
|
|
@ -300,7 +300,7 @@ my-release 4 Fri Nov 1 08:40:07 2019 DEPLOYED raw-3.1.0 3.1.0 def
|
||||||
},
|
},
|
||||||
error: ``,
|
error: ``,
|
||||||
files: map[string]string{
|
files: map[string]string{
|
||||||
"/path/to/helmfile.yaml": `
|
"/path/to/helmfile.yaml.gotmpl": `
|
||||||
{{ $mark := "a" }}
|
{{ $mark := "a" }}
|
||||||
|
|
||||||
releases:
|
releases:
|
||||||
|
|
@ -348,7 +348,7 @@ serviceA 4 Fri Nov 1 08:40:07 2019 DEPLOYED chart-3.1.0 3.1.0 def
|
||||||
},
|
},
|
||||||
error: ``,
|
error: ``,
|
||||||
files: map[string]string{
|
files: map[string]string{
|
||||||
"/path/to/helmfile.yaml": `
|
"/path/to/helmfile.yaml.gotmpl": `
|
||||||
{{ $mark := "a" }}
|
{{ $mark := "a" }}
|
||||||
|
|
||||||
releases:
|
releases:
|
||||||
|
|
@ -401,7 +401,7 @@ my-release 4 Fri Nov 1 08:40:07 2019 DEPLOYED raw-3.1.0 3.1.0 def
|
||||||
},
|
},
|
||||||
error: ``,
|
error: ``,
|
||||||
files: map[string]string{
|
files: map[string]string{
|
||||||
"/path/to/helmfile.yaml": `
|
"/path/to/helmfile.yaml.gotmpl": `
|
||||||
{{ $mark := "a" }}
|
{{ $mark := "a" }}
|
||||||
|
|
||||||
releases:
|
releases:
|
||||||
|
|
@ -447,7 +447,7 @@ my-release 4 Fri Nov 1 08:40:07 2019 DEPLOYED raw-3.1.0 3.1.0 def
|
||||||
t.Run("bad --selector", func(t *testing.T) {
|
t.Run("bad --selector", func(t *testing.T) {
|
||||||
check(t, testcase{
|
check(t, testcase{
|
||||||
files: map[string]string{
|
files: map[string]string{
|
||||||
"/path/to/helmfile.yaml": `
|
"/path/to/helmfile.yaml.gotmpl": `
|
||||||
{{ $mark := "a" }}
|
{{ $mark := "a" }}
|
||||||
|
|
||||||
releases:
|
releases:
|
||||||
|
|
|
||||||
|
|
@ -3421,7 +3421,7 @@ bar 4 Fri Nov 1 08:40:07 2019 DEPLOYED mychart2-3.1.0 3.1.0 defau
|
||||||
skipNeeds: true,
|
skipNeeds: true,
|
||||||
},
|
},
|
||||||
files: map[string]string{
|
files: map[string]string{
|
||||||
"/path/to/helmfile.yaml": `
|
"/path/to/helmfile.yaml.gotmpl": `
|
||||||
{{ $mark := "a" }}
|
{{ $mark := "a" }}
|
||||||
|
|
||||||
releases:
|
releases:
|
||||||
|
|
@ -3476,7 +3476,7 @@ my-release 4 Fri Nov 1 08:40:07 2019 DEPLOYED raw-3.1.0 3.1.0 def
|
||||||
},
|
},
|
||||||
error: `in ./helmfile.yaml: release "default/default/external-secrets" depends on "default/kube-system/kubernetes-external-secrets" which does not match the selectors. Please add a selector like "--selector name=kubernetes-external-secrets", or indicate whether to skip (--skip-needs) or include (--include-needs) these dependencies`,
|
error: `in ./helmfile.yaml: release "default/default/external-secrets" depends on "default/kube-system/kubernetes-external-secrets" which does not match the selectors. Please add a selector like "--selector name=kubernetes-external-secrets", or indicate whether to skip (--skip-needs) or include (--include-needs) these dependencies`,
|
||||||
files: map[string]string{
|
files: map[string]string{
|
||||||
"/path/to/helmfile.yaml": `
|
"/path/to/helmfile.yaml.gotmpl": `
|
||||||
{{ $mark := "a" }}
|
{{ $mark := "a" }}
|
||||||
|
|
||||||
releases:
|
releases:
|
||||||
|
|
@ -3515,7 +3515,7 @@ releases:
|
||||||
name: "upgrades with bad selector",
|
name: "upgrades with bad selector",
|
||||||
loc: location(),
|
loc: location(),
|
||||||
files: map[string]string{
|
files: map[string]string{
|
||||||
"/path/to/helmfile.yaml": `
|
"/path/to/helmfile.yaml.gotmpl": `
|
||||||
{{ $mark := "a" }}
|
{{ $mark := "a" }}
|
||||||
|
|
||||||
releases:
|
releases:
|
||||||
|
|
|
||||||
|
|
@ -636,7 +636,7 @@ bar 4 Fri Nov 1 08:40:07 2019 DEPLOYED mychart2-3.1.0 3.1.0 defau
|
||||||
loc: location(),
|
loc: location(),
|
||||||
flags: flags{skipNeeds: true},
|
flags: flags{skipNeeds: true},
|
||||||
files: map[string]string{
|
files: map[string]string{
|
||||||
"/path/to/helmfile.yaml": `
|
"/path/to/helmfile.yaml.gotmpl": `
|
||||||
{{ $mark := "a" }}
|
{{ $mark := "a" }}
|
||||||
|
|
||||||
releases:
|
releases:
|
||||||
|
|
@ -677,7 +677,7 @@ releases:
|
||||||
loc: location(),
|
loc: location(),
|
||||||
flags: flags{skipNeeds: false},
|
flags: flags{skipNeeds: false},
|
||||||
files: map[string]string{
|
files: map[string]string{
|
||||||
"/path/to/helmfile.yaml": `
|
"/path/to/helmfile.yaml.gotmpl": `
|
||||||
{{ $mark := "a" }}
|
{{ $mark := "a" }}
|
||||||
|
|
||||||
releases:
|
releases:
|
||||||
|
|
@ -785,7 +785,7 @@ changing working directory back to "/path/to"
|
||||||
name: "upgrades with bad selector",
|
name: "upgrades with bad selector",
|
||||||
loc: location(),
|
loc: location(),
|
||||||
files: map[string]string{
|
files: map[string]string{
|
||||||
"/path/to/helmfile.yaml": `
|
"/path/to/helmfile.yaml.gotmpl": `
|
||||||
{{ $mark := "a" }}
|
{{ $mark := "a" }}
|
||||||
|
|
||||||
releases:
|
releases:
|
||||||
|
|
|
||||||
|
|
@ -931,7 +931,7 @@ bar 4 Fri Nov 1 08:40:07 2019 DEPLOYED mychart2-3.1.0 3.1.0 defau
|
||||||
loc: location(),
|
loc: location(),
|
||||||
flags: flags{skipNeeds: true},
|
flags: flags{skipNeeds: true},
|
||||||
files: map[string]string{
|
files: map[string]string{
|
||||||
"/path/to/helmfile.yaml": `
|
"/path/to/helmfile.yaml.gotmpl": `
|
||||||
{{ $mark := "a" }}
|
{{ $mark := "a" }}
|
||||||
|
|
||||||
releases:
|
releases:
|
||||||
|
|
@ -972,7 +972,7 @@ releases:
|
||||||
loc: location(),
|
loc: location(),
|
||||||
flags: flags{skipNeeds: false},
|
flags: flags{skipNeeds: false},
|
||||||
files: map[string]string{
|
files: map[string]string{
|
||||||
"/path/to/helmfile.yaml": `
|
"/path/to/helmfile.yaml.gotmpl": `
|
||||||
{{ $mark := "a" }}
|
{{ $mark := "a" }}
|
||||||
|
|
||||||
releases:
|
releases:
|
||||||
|
|
@ -1080,7 +1080,7 @@ changing working directory back to "/path/to"
|
||||||
name: "upgrades with bad selector",
|
name: "upgrades with bad selector",
|
||||||
loc: location(),
|
loc: location(),
|
||||||
files: map[string]string{
|
files: map[string]string{
|
||||||
"/path/to/helmfile.yaml": `
|
"/path/to/helmfile.yaml.gotmpl": `
|
||||||
{{ $mark := "a" }}
|
{{ $mark := "a" }}
|
||||||
|
|
||||||
releases:
|
releases:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue