Documentation
¶
Index ¶
- Constants
- func BuildImageAltNames(rewrittenImage kustomizetypes.Image) ([]kustomizetypes.Image, error)
- func CopyImage(opts types.CopyImageOptions) error
- func CopyImageWithGC(ctx context.Context, destRef, srcRef containerstypes.ImageReference, ...) ([]byte, error)
- func DestImage(destRegistry registrytypes.RegistryOptions, srcImage string) (string, error)
- func DestImageFromKustomizeImage(image kustomizetypes.Image) string
- func GetMinioImage(clientset kubernetes.Interface, kotsadmNamespace string) (string, error)
- func GetPrivateImages(baseDir string, kotsKindsImages []string, ...) ([]string, []k8sdoc.K8sDoc, error)
- func GetTag(imageRef string) (string, error)
- func IsPrivateImage(image string, dockerHubRegistry registrytypes.RegistryOptions) (bool, error)
- func RewriteDockerArchiveImage(registry registrytypes.RegistryOptions, nameParts []string) (kustomizetypes.Image, error)
- func RewriteDockerRegistryImage(destRegistry registrytypes.RegistryOptions, srcImage string) (*kustomizetypes.Image, error)
- func RewriteImages(srcRegistry, destRegistry registrytypes.RegistryOptions, appSlug string, ...) ([]kustomizeimage.Image, error)
- func RewritePrivateImage(srcRegistry registrytypes.RegistryOptions, image string, appSlug string) (string, error)
- func SrcImageFromKustomizeImage(image kustomizetypes.Image) string
Constants ¶
const ( Minio = "minio/minio:RELEASE.2023-02-22T18-23-45Z" Mc = "minio/mc:RELEASE.2023-02-16T19-20-11Z" Rqlite = "rqlite/rqlite:7.13.1" Dex = "ghcr.io/dexidp/dex:v2.35.3" Schemahero = "schemahero/schemahero:0.13.8" Lvp = "replicated/local-volume-provider:v0.5.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 IsPrivateImage ¶
func IsPrivateImage(image string, dockerHubRegistry registrytypes.RegistryOptions) (bool, error)
if dockerHubRegistry is provided, its credentials will be used for DockerHub images to increase the rate limit.
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.