Documentation ¶
Index ¶
- func ChartFileSha256(chartFile string) string
- func ExtractChart(chartTarball []byte, destDir string) error
- func ParseAsKubeObjects(rendered []byte) (fn.KubeObjects, error)
- func ParseAsRNodes(rendered []byte) ([]*kyaml.RNode, error)
- func PullChart(chart *t.HelmChartArgs, destinationPath string, username, password *string) (tarballName, chartSha256Sum string, err error)
- func SourceChart(chart *t.HelmChartArgs, destination string, username, password *string) (chartData []byte, tarballName, chartSha256Sum string, err error)
- func Template(chart *t.HelmChart, chartTarball []byte) ([]byte, error)
- func ToList(search []RepoSearch) []string
- type RepoSearch
- type RunContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChartFileSha256 ¶
func ExtractChart ¶
ExtractChart extracts a chart tarball into destDir
func ParseAsKubeObjects ¶
func ParseAsKubeObjects(rendered []byte) (fn.KubeObjects, 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 ¶
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()