mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 18:24:07 +00:00
kubeadm: app/util/template.go has unit tests
remove TODO because unit tests have been added
This commit is contained in:
parent
9e427c88c4
commit
318e27b68a
@ -22,7 +22,6 @@ import (
|
|||||||
"text/template"
|
"text/template"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TODO: Should be unit-tested
|
|
||||||
func ParseTemplate(strtmpl string, obj interface{}) ([]byte, error) {
|
func ParseTemplate(strtmpl string, obj interface{}) ([]byte, error) {
|
||||||
var buf bytes.Buffer
|
var buf bytes.Buffer
|
||||||
tmpl, err := template.New("template").Parse(strtmpl)
|
tmpl, err := template.New("template").Parse(strtmpl)
|
||||||
|
Loading…
Reference in New Issue
Block a user