helm

package
v1.4.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: Apache-2.0 Imports: 24 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImageRefsCacheKey

func ImageRefsCacheKey(
	orgID uuid.UUID,
	app v1beta1.HelmApplication,
	device *domain.Device,
	renderedConfig []byte,
	ttl time.Duration,
) (string, error)

ImageRefsCacheKey returns a content-addressed key for the extracted image references of a Helm application. The key includes all inputs that affect templating, including whether the release is installed, and the cache TTL so changing the configured TTL cannot reuse an entry written under another TTL.

func ResolveOCIRepositorySpec

func ResolveOCIRepositorySpec(
	ctx context.Context,
	repositories repositoryservice.Service,
	orgID uuid.UUID,
	chartRef string,
	fallback *domain.OciRepoSpec,
) (*domain.OciRepoSpec, error)

ResolveOCIRepositorySpec finds the most-specific OCI Repository resource for a chart reference. If none matches, a same-registry fallback (typically the configured delta storage repository) may supply registry credentials.

Types

type Renderer

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

Renderer renders a target Helm chart locally and extracts the image references from its Kubernetes workloads.

func NewRenderer

func NewRenderer(exec executer.Executer, logger logrus.FieldLogger) *Renderer

func (*Renderer) ImageRefs

func (r *Renderer) ImageRefs(
	ctx context.Context,
	app v1beta1.HelmApplication,
	device *domain.Device,
	renderedConfig []byte,
	registrySpec *domain.OciRepoSpec,
) ([]string, error)

ImageRefs pulls the target chart, applies the same chart-relative values files and inline values as the agent, renders the release, and extracts its workload images. renderedConfig is the config content from the same rendered spec, so registry and repository configuration matches what the agent will receive. The device's current status determines whether this is an upgrade render. registrySpec supplies fallback credentials and transport settings when the chart registry is configured as a Repository resource.

Jump to

Keyboard shortcuts

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