helm

package
v0.6.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2022 License: MPL-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const LayerAnnotation = "weave.works/layer"

LayerAnnotation specifies profile application order. Profiles are sorted by layer and those at a higher "layer" are only installed after lower layers have successfully installed and started.

View Source
const ProfileAnnotation = "weave.works/profile"

ProfileAnnotation is the annotation that Helm charts must have to indicate that they provide a Profile.

Variables

View Source
var Profiles = func(v *repo.ChartVersion) bool {
	return hasAnnotation(v.Metadata, ProfileAnnotation)
}

Profiles is a predicate for scanning charts with the ProfileAnnotation.

Functions

This section is empty.

Types

type ChartPredicate

type ChartPredicate func(*repo.ChartVersion) bool

type ChartReference

type ChartReference struct {
	Chart   string
	Version string
}

ChartReference is a Helm chart reference

type HelmRepoManager added in v0.6.1

type HelmRepoManager interface {
	ListCharts(ctx context.Context, hr *sourcev1beta1.HelmRepository, pred ChartPredicate) ([]*pb.Profile, error)
	GetValuesFile(ctx context.Context, helmRepo *sourcev1beta1.HelmRepository, c *ChartReference, filename string) ([]byte, error)
}

type RepoManager

type RepoManager struct {
	client.Client
	CacheDir string
	// contains filtered or unexported fields
}

RepoManager implements HelmRepoManager interface using the Helm library packages.

func NewRepoManager

func NewRepoManager(kc client.Client, cacheDir string) *RepoManager

NewRepoManager creates and returns a new RepoManager.

func (*RepoManager) GetValuesFile

func (h *RepoManager) GetValuesFile(ctx context.Context, helmRepo *sourcev1beta1.HelmRepository, c *ChartReference, filename string) ([]byte, error)

GetValuesFile fetches the value file from a chart.

func (*RepoManager) ListCharts added in v0.6.1

ListCharts filters charts using the provided predicate.

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.
cache/cachefakes
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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