helm

package
v0.0.0-...-d201a24 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChartFileSha256

func ChartFileSha256(chartFile string) string

func ExtractChart

func ExtractChart(chartTarball []byte, destDir string) error

ExtractChart extracts a chart tarball into destDir

func ParseAsKubeObjects

func ParseAsKubeObjects(rendered []byte) (fn.KubeObjects, error)

func ParseAsRNodes

func ParseAsRNodes(rendered []byte) ([]*kyaml.RNode, error)

func PullChart

func PullChart(chart *t.HelmChartArgs, destinationPath string, username, password *string) (tarballName, chartSha256Sum string, err error)

PullChart runs 'helm pull' and returns normalized tarball filename and tarball sha256sum

func SourceChart

func SourceChart(chart *t.HelmChartArgs, destination string, username, password *string) (chartData []byte, tarballName, chartSha256Sum string, err error)

SourceChart runs PullChart to retrieve chart and reads and returns raw tarball bytes. If destination is not defined, a temporary directory will be used, and cleaned-up at function exit. This means that only the returned chartData can be used and not the tarballName

func Template

func Template(chart *t.HelmChart, chartTarball []byte) ([]byte, error)

Template extracts a chart tarball and renders the chart using given values and `helm template`. The raw chart tarball data is given in `chartTarball` (note, not base64 encoded). Returns the rendered text

func ToList

func ToList(search []RepoSearch) []string

ToList process a repo-search and return a slice with versions

Types

type RepoSearch

type RepoSearch struct {
	Version     string `yaml:"version"`
	AppVersion  string `yaml:"app_version"`
	Name        string `yaml:"name"`
	Description string `yaml:"description"`
}

func FilterByChartName

func FilterByChartName(search []RepoSearch, chart *t.HelmChartArgs) []RepoSearch

func GetSearch

func GetSearch(search []RepoSearch, version string) (*RepoSearch, error)

GetVersion looks up a specific chart version in repo-search

func SearchRepo

func SearchRepo(chart *t.HelmChartArgs, username, password *string) ([]RepoSearch, error)

type RunContext

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

func NewRunContext

func NewRunContext() *RunContext

func (*RunContext) DiscardContext

func (ctxt *RunContext) DiscardContext()

func (*RunContext) Run

func (ctxt *RunContext) Run(args ...string) ([]byte, error)

Jump to

Keyboard shortcuts

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