imageswriter

package
v0.0.0-...-30aadf7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package imageswriter provides different implementations of Helm chart images' writers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractImages

func ExtractImages(ctx context.Context, yaml string) ([]string, error)

extractImages extracts the images from the templatized Helm chart Ref: https://mikeperry.io/posts/copy-helm-images/ helm template . \ | yq '..|.image? | select(.)' \ | sort \ | uniq \ | xargs -I % -n 1 -P 4 bash -c "docker pull % && docker tag % my.registry.com/% docker push my.registry.com/%"

func NewFileImagesWriter

func NewFileImagesWriter(toDir string) *fileimageswriter

func NewNilImagesWriter

func NewNilImagesWriter() *nilimageswriter

func NewStdoutImagesWriter

func NewStdoutImagesWriter() *stdoutimageswriter

func Templatize

func Templatize(ctx context.Context, chart *api.Chart) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL