Documentation
¶
Overview ¶
Package discover finds every container image a rendered chart references, in four passes: pod-spec container lists (containers, initContainers, ephemeralContainers — as sequences at any depth, which skips the CRD schemas where those keys hold maps), operator-style top-level spec.image scalars, a conservative regex sweep over ConfigMap data for image-shaped strings (embedded pod templates), and the manifest-declared extras ({appVersion} expanded from the vendored chart). References are normalized the way container runtimes expand shorthand, filtered by the manifest's exclude globs, and returned sorted and deduplicated.
Discovery is pure — rendered bytes in, references out. Digest resolution against registries belongs to the engine.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Input ¶
type Input struct {
// Rendered is the rendered manifest stream.
Rendered []byte
// AppVersion expands {appVersion} in extra image references.
AppVersion string
// Extra are the manifest- and sidecar-declared images rendering
// cannot see.
Extra []spec.ExtraImage
// Exclude drops discovered references matching these globs.
Exclude []spec.ExcludePattern
// AllowEmpty accepts a chart that renders no images.
AllowEmpty bool
}
Input is one discovery run.