exec

package
v0.0.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package exec is the HelmClient that runs the helm binary through a CommandRunner.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client runs helm in the codebase root.

func New

func New(runner interfaces.CommandRunner, root string) *Client

New returns the Client running helm in root through runner. It does no I/O.

func (*Client) DependencyBuild

func (c *Client) DependencyBuild(ctx context.Context, chartDir string) error

DependencyBuild runs `helm dependency build <chart>` under a private repository cache and config, removed on return. helm's default per-user repository cache is one shared tree, so two concurrent builds of different charts race on its index files (one truncates an index while the other reads it, failing with "empty index.yaml file"); a private home per call makes each build independent.

func (*Client) Lint

func (c *Client) Lint(ctx context.Context, spec types.RenderSpec) error

Lint runs `helm lint <chart> [--namespace] [-f …] [--set …]`.

func (*Client) Template

func (c *Client) Template(ctx context.Context, spec types.RenderSpec) ([]byte, error)

Template runs `helm template <release> <chart> [--namespace] [-f …] [--set …]`.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL