From b7c41f38c40c860bf0af4306b0f030a4e5e189c8 Mon Sep 17 00:00:00 2001 From: Paul Brousseau Date: Mon, 14 Sep 2020 12:50:30 -0700 Subject: [PATCH] Add engine.NewWithClient func Signed-off-by: Paul Brousseau --- pkg/engine/engine.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkg/engine/engine.go b/pkg/engine/engine.go index 155d50a38..5f284e7fc 100644 --- a/pkg/engine/engine.go +++ b/pkg/engine/engine.go @@ -44,6 +44,13 @@ type Engine struct { 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 can be called repeatedly on the same engine.