image

package
v1.91.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2022 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Minio      = "minio/minio:RELEASE.2022-10-24T18-35-07Z"
	Rqlite     = "rqlite/rqlite:7.10.0"
	Dex        = "ghcr.io/dexidp/dex:v2.35.3"
	Schemahero = "schemahero/schemahero:0.13.6"
	Lvp        = "replicated/local-volume-provider:v0.4.0"
)

Variables

This section is empty.

Functions

func BuildImageAltNames

func BuildImageAltNames(rewrittenImage kustomizetypes.Image) ([]kustomizetypes.Image, error)

func CopyImage added in v1.82.0

func CopyImage(opts types.CopyImageOptions) error

func CopyImageWithGC

func CopyImageWithGC(ctx context.Context, destRef, srcRef containerstypes.ImageReference, options *copy.Options) ([]byte, error)

func DestImage added in v1.82.0

func DestImage(destRegistry registrytypes.RegistryOptions, srcImage string) (string, error)

DestImage returns the location to push the image to on the dest registry

func DestImageFromKustomizeImage added in v1.82.0

func DestImageFromKustomizeImage(image kustomizetypes.Image) string

DestImageFromKustomizeImage returns the location to push the image to from a kustomize image type

func GetMinioImage

func GetMinioImage(clientset kubernetes.Interface, kotsadmNamespace string) (string, error)

MinioImage looks through the nodes in the cluster and finds nodes that have already pulled Minio, and then finds the latest image tag listed

func GetPrivateImages

func GetPrivateImages(upstreamDir string, kotsKindsImages []string, checkedImages map[string]types.ImageInfo, allPrivate bool, dockerHubRegistry registrytypes.RegistryOptions, parentHelmChartPath string, useHelmInstall map[string]bool) ([]string, []k8sdoc.K8sDoc, error)

func GetTag

func GetTag(imageRef string) (string, error)

GetTag extracts the image tag from an image reference

func IsPrivateImage

func IsPrivateImage(image string, dockerHubRegistry registrytypes.RegistryOptions) (bool, error)

if dockerHubRegistry is provided, its credentials will be used in case of rate limiting

func RewriteDockerArchiveImage added in v1.82.0

func RewriteDockerArchiveImage(registry registrytypes.RegistryOptions, nameParts []string) (kustomizetypes.Image, error)

func RewriteDockerRegistryImage added in v1.82.0

func RewriteDockerRegistryImage(destRegistry registrytypes.RegistryOptions, srcImage string) (*kustomizetypes.Image, error)

func RewriteImages added in v1.82.0

func RewriteImages(srcRegistry, destRegistry registrytypes.RegistryOptions, appSlug string, log *logger.CLILogger, reportWriter io.Writer, upstreamDir string, additionalImages []string, copyImages, allImagesPrivate bool, checkedImages map[string]types.ImageInfo, dockerHubRegistry registrytypes.RegistryOptions) ([]kustomizeimage.Image, error)

func RewritePrivateImage

func RewritePrivateImage(srcRegistry registrytypes.RegistryOptions, image string, appSlug string) (string, error)

func SrcImageFromKustomizeImage added in v1.85.0

func SrcImageFromKustomizeImage(image kustomizetypes.Image) string

SrcImageFromKustomizeImage returns the location of the source image from a kustomize image type Note: if image name contains both a tag and a digest, only the digest is used, so the result might not exactly match the original image name.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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