Documentation ¶
Overview ¶
Package resolve looks up image references in resources and resolves tags to digests using the `crane` package from `go-containerregistry`.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ImageTags ¶
func ImageTags(ctx context.Context, log logr.Logger, config *rest.Config, n *yaml.RNode, skipPrefixes []string) error
ImageTags looks up the digest and adds it to the image field for containers and initContainers in pods and pod template specs.
It looks for image fields with tags in these sequence nodes: - `spec.containers` - `spec.initContainers` - `spec.template.spec.containers` - `spec.template.spec.initContainers` - `spec.jobTemplate.spec.template.spec.containers` - `spec.jobTemplate.spec.template.spec.initContainers` The `config` input parameter can be null. In this case, the function will not attempt to retrieve imagePullSecrets from the cluster.
Types ¶
type ImageTagFilter ¶
ImageTagFilter resolves image tags to digests