MCPcopy Create free account
hub / github.com/devspace-sh/devspace / NewClient

Function NewClient

pkg/devspace/helm/v3/client.go:27–31  ·  view source on GitHub ↗

NewClient creates a new helm v3 Client

(log log.Logger)

Source from the content-addressed store, hash-verified

25
26// NewClient creates a new helm v3 Client
27func NewClient(log log.Logger) (types.Client, error) {
28 c := &client{}
29 c.genericHelm = generic.NewGenericClient(commands.NewHelmV3Command(), log)
30 return c, nil
31}
32
33func (c *client) DownloadChart(ctx devspacecontext.Context, helmConfig *latest.HelmConfig) (string, error) {
34 chartName, err := dependencyutil.DownloadDependency(ctx.Context(), ctx.WorkingDir(), helmConfig.Chart.Source, ctx.Log())

Callers 1

NewClientFunction · 0.92

Calls 1

NewGenericClientFunction · 0.92

Tested by

no test coverage detected