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.