Documentation
¶
Index ¶
- Constants
- func CopyImage(opts types.CopyImageOptions) error
- func CopyImageWithGC(ctx context.Context, destRef, srcRef containerstypes.ImageReference, ...) ([]byte, error)
- func GetMinioImage(clientset kubernetes.Interface, kotsadmNamespace string) (string, error)
- func GetPrivateImages(baseDir string, kotsKindsImages []string, ...) ([]string, []k8sdoc.K8sDoc, error)
- func IsPrivateImage(image string, dockerHubRegistry dockerregistrytypes.RegistryOptions) (bool, error)
- func RewriteImages(srcRegistry, destRegistry dockerregistrytypes.RegistryOptions, appSlug string, ...) ([]kustomizeimage.Image, error)
- func RewritePrivateImage(srcRegistry dockerregistrytypes.RegistryOptions, image string, appSlug string) (string, error)
- type ProcessImageOptions
- type RewriteImagesBetweenRegistriesOptions
- type RewriteImagesResult
Constants ¶
View Source
const ( Minio = "kotsadm/minio:0.20231101.183725-r1" Rqlite = "kotsadm/rqlite:8.13.5-r0" Dex = "kotsadm/dex:2.37.0-r12" Schemahero = "schemahero/schemahero:0.17.2" Lvp = "replicated/local-volume-provider:v0.5.6" )
Variables ¶
This section is empty.
Functions ¶
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 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 dockerregistrytypes.RegistryOptions) (bool, error)
if dockerHubRegistry is provided, its credentials will be used for DockerHub images to increase the rate limit.
func RewriteImages ¶ added in v1.82.0
func RewriteImages(srcRegistry, destRegistry dockerregistrytypes.RegistryOptions, appSlug string, log *logger.CLILogger, reportWriter io.Writer, baseDir string, additionalImages []string, copyImages, allImagesPrivate bool, checkedImages map[string]types.ImageInfo, dockerHubRegistry dockerregistrytypes.RegistryOptions) ([]kustomizeimage.Image, error)
func RewritePrivateImage ¶
func RewritePrivateImage(srcRegistry dockerregistrytypes.RegistryOptions, image string, appSlug string) (string, error)
Types ¶
type ProcessImageOptions ¶ added in v1.99.0
type RewriteImagesBetweenRegistriesOptions ¶ added in v1.99.0
type RewriteImagesBetweenRegistriesOptions struct { BaseDir string AppSlug string SourceRegistry dockerregistrytypes.RegistryOptions DestRegistry dockerregistrytypes.RegistryOptions DockerHubRegistry dockerregistrytypes.RegistryOptions CopyImages bool IsAirgap bool Log *logger.CLILogger ReportWriter io.Writer KotsKinds *kotsutil.KotsKinds }
type RewriteImagesResult ¶ added in v1.99.0
type RewriteImagesResult struct { Images []kustomizeimage.Image // images to be rewritten CheckedImages []kotsv1beta1.InstallationImage // all images found in the installation }
func RewriteBaseImages ¶ added in v1.99.0
func RewriteBaseImages(options ProcessImageOptions, baseDir string, kotsKinds *kotsutil.KotsKinds, license *kotsv1beta1.License, dockerHubRegistryCreds registry.Credentials, log *logger.CLILogger) (*RewriteImagesResult, error)
RewriteBaseImages Will rewrite images found in base and copy them (if necessary) to the configured registry.
func RewriteImagesBetweenRegistries ¶ added in v1.99.0
func RewriteImagesBetweenRegistries(options RewriteImagesBetweenRegistriesOptions) (*RewriteImagesResult, error)
Click to show internal directories.
Click to hide internal directories.