Documentation
¶
Index ¶
Constants ¶
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
SourceRef helmv2beta1.CrossNamespaceObjectReference
}
ChartReference is a Helm chart reference, the SourceRef is a Flux SourceReference for the Helm chart.
type RepoManager ¶
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) GetCharts ¶
func (h *RepoManager) GetCharts(ctx context.Context, hr *sourcev1beta1.HelmRepository, pred ChartPredicate) ([]*pb.Profile, error)
GetCharts filters charts using the provided predicate. TODO: Add caching based on the Status Artifact Revision.
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.
Click to show internal directories.
Click to hide internal directories.