Skip to content

Getting all Image references from a chart convenience function #11846

Closed
@martencassel

Description

@martencassel

Sometimes you need to ship all images referenced in a helm chart to your private docker registry. You do a helm template|grep image: and pull/tag/push each one of them.

For example
`

helm-to-image-ref() {
HELM_CHART_REF=$1
helm template $HELM_CHART_REF|grep image|grep image:|xargs|sed --expression 's/image://g' - |xargs
}
helm-to-image-ref jetstack/cert-manager

Would return all image references from the above chart. This could be combine with a tool like skopeo copy.

Is this feature something that could be considered as a helper function in helm ?
Some flag in helm template or other ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions