@ -25,6 +25,7 @@ import (
"path"
"path"
"path/filepath"
"path/filepath"
"strings"
"strings"
"text/template"
"github.com/pkg/errors"
"github.com/pkg/errors"
"k8s.io/apimachinery/pkg/api/meta"
"k8s.io/apimachinery/pkg/api/meta"
@ -80,6 +81,9 @@ type Configuration struct {
// Capabilities describes the capabilities of the Kubernetes cluster.
// Capabilities describes the capabilities of the Kubernetes cluster.
Capabilities * chartutil . Capabilities
Capabilities * chartutil . Capabilities
// CustomTemplateFuncs is defined by users to provide custom template funcs
CustomTemplateFuncs template . FuncMap
// HookOutputFunc called with container name and returns and expects writer that will receive the log output.
// HookOutputFunc called with container name and returns and expects writer that will receive the log output.
HookOutputFunc func ( namespace , pod , container string ) io . Writer
HookOutputFunc func ( namespace , pod , container string ) io . Writer
}
}
@ -118,6 +122,8 @@ func (cfg *Configuration) renderResources(ch *chart.Chart, values chartutil.Valu
}
}
e := engine . New ( restConfig )
e := engine . New ( restConfig )
e . EnableDNS = enableDNS
e . EnableDNS = enableDNS
e . CustomTemplateFuncs = cfg . CustomTemplateFuncs
files , err2 = e . Render ( ch , values )
files , err2 = e . Render ( ch , values )
} else {
} else {
var e engine . Engine
var e engine . Engine