Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting all Image references from a chart convenience function #11846

Closed
martencassel opened this issue Feb 23, 2023 · 1 comment
Closed

Getting all Image references from a chart convenience function #11846

martencassel opened this issue Feb 23, 2023 · 1 comment

Comments

@martencassel
Copy link

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 ?

@gjenkins8
Copy link
Contributor

Have a look at helm/community#281

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants