Skip to content

Commit

Permalink
Fixed inconsistency in kind: Template rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
shyiko committed Jul 16, 2018
1 parent ca83ade commit eab693a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kubetpl.go
Original file line number Diff line number Diff line change
Expand Up @@ -458,12 +458,12 @@ func newTemplate(file string, flavor string) (engine.Template, error) {
" / add \"# kubetpl:syntax:<$|go-template|template-kind>\"?", file, err.Error())
}
if m["kind"] == "Template" {
log.Warnf("%s appears to contain \"kind: Template\"" +
" (please either use `--syntax=go-template` or add \"# kubetpl:syntax:go-template\" to the template)")
log.Warnf("%s is missing \"# kubetpl:syntax:template-kind\""+
" (use `--syntax=template-kind` if you can't add \"# kubetpl:syntax:template-kind\" to the template)", file)
break
}
}
return engine.NewTemplateKindTemplate(content) // change to simple pass-through in 1.0.0
return engine.NewTemplateKindTemplate(content, engine.TemplateKindTemplateDropNull()) // change to simple pass-through in 1.0.0
}
}

Expand Down

0 comments on commit eab693a

Please sign in to comment.