helmchart

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: AGPL-3.0 Imports: 26 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package helmchart resolves HelmRepository charts through the shared acquisition cache.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Cache remains caller-owned and MUST outlive acquired artifacts.
	Cache *cache.Cache
	// Network is the required non-nil invocation owner, borrowed by this fetcher.
	Network *source.Network
	// Concurrency is the invocation's task budget, from which index decoding borrows a smaller share.
	Concurrency int
	// DisableChartDigestTracking makes exact chart versions immutable cache pins.
	DisableChartDigestTracking bool
}

Config fixes acquisition and chart identity policy before reconciliation.

type Fetcher

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

Fetcher resolves a HelmChart into an immutable source artifact.

func New

func New(oci ociFetcher, cfg Config) *Fetcher

New constructs a fetcher borrowing the caller's cache and required non-nil Network.

func (*Fetcher) Fetch

func (f *Fetcher) Fetch(
	ctx context.Context,
	hc *manifest.HelmChartSource,
	reads *store.ReadSet,
	policyValue *cache.Policy,
) (source.PreparedFetch, error)

Fetch acquires content using one execution's captured credentials and declarations.

func (*Fetcher) FetchDependency

func (f *Fetcher) FetchDependency(
	ctx context.Context,
	namespace string,
	dependency *chart.Dependency,
	index *manifest.DiscoveryIndex,
	reads *store.ReadSet,
	policy *cache.Policy,
	probe bool,
) (source.PreparedFetch, error)

FetchDependency MUST require admission of the selected repository before credential access. A probe MUST capture identities without preparing credentials or transports.

Jump to

Keyboard shortcuts

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