|
|
|
@ -230,6 +230,20 @@ func withSampleTemplates() chartOption {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func withSampleIncludingIncorrectTemplates() chartOption {
|
|
|
|
|
return func(opts *chartOptions) {
|
|
|
|
|
sampleTemplates := []*chart.File{
|
|
|
|
|
// This adds basic templates and partials.
|
|
|
|
|
{Name: "templates/goodbye", Data: []byte("goodbye: world")},
|
|
|
|
|
{Name: "templates/empty", Data: []byte("")},
|
|
|
|
|
{Name: "templates/incorrect", Data: []byte("{{ .Values.bad.doh }}")},
|
|
|
|
|
{Name: "templates/with-partials", Data: []byte(`hello: {{ template "_planet" . }}`)},
|
|
|
|
|
{Name: "templates/partials/_planet", Data: []byte(`{{define "_planet"}}Earth{{end}}`)},
|
|
|
|
|
}
|
|
|
|
|
opts.Templates = append(opts.Templates, sampleTemplates...)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func withMultipleManifestTemplate() chartOption {
|
|
|
|
|
return func(opts *chartOptions) {
|
|
|
|
|
sampleTemplates := []*chart.File{
|
|
|
|
|