Add engine.NewWithClient func

Signed-off-by: Paul Brousseau <object88@gmail.com>
pull/8730/head
Paul Brousseau 5 years ago
parent 5b42157335
commit b7c41f38c4

@ -44,6 +44,13 @@ type Engine struct {
config *rest.Config config *rest.Config
} }
// NewWithClient creates a new instance of client-aware Engine
func NewWithClient(config *rest.Config) *Engine {
return &Engine{
config: config,
}
}
// Render takes a chart, optional values, and value overrides, and attempts to render the Go templates. // Render takes a chart, optional values, and value overrides, and attempts to render the Go templates.
// //
// Render can be called repeatedly on the same engine. // Render can be called repeatedly on the same engine.

Loading…
Cancel
Save