build

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 49 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Kustomize

func Kustomize(ctx context.Context, path string) (resmap.ResMap, error)

func TempPathForObj

func TempPathForObj(dir, suffix string, obj *sourcev1beta2.HelmChart) string

TempPathForObj creates a temporary file path in the format of '<dir>/Kind-Namespace-Name-<random bytes><suffix>'. If the given dir is empty, os.TempDir is used as a default.

Types

type Helm

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

func NewHelmBuilder

func NewHelmBuilder(opts HelmOpts) *Helm

func (*Helm) Build

func (h *Helm) Build(ctx context.Context, r *resource.Resource, db map[ref]*resource.Resource) (resmap.ResMap, error)

type HelmOpts

type HelmOpts struct {
	APIVersions      []string
	FailFast         bool
	CacheDir         string
	KubeVersion      *chartutil.KubeVersion
	Getters          helmgetter.Providers
	Decoder          runtime.Decoder
	IncludeHelmHooks bool
}

type ResourceIndex added in v0.0.6

type ResourceIndex map[ref]*resource.Resource

func (ResourceIndex) Push added in v0.0.6

func (r ResourceIndex) Push(resources []*resource.Resource) error

Jump to

Keyboard shortcuts

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