registry

package
v1.78.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2022 License: Apache-2.0 Imports: 44 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteUnusedImages

func DeleteUnusedImages(appID string, ignoreRollback bool) error

func GetKotsadmRegistry

func GetKotsadmRegistry() (*types.RegistrySettings, error)

func HasKurlRegistry

func HasKurlRegistry() (bool, error)

func RewriteImages

func RewriteImages(appID string, sequence int64, hostname string, username string, password string, namespace string, isReadOnly bool, configValues *kotsv1beta1.ConfigValues) (appDir string, finalError error)

RewriteImages will use the app (a) and send the images to the registry specified. It will create patches for these and create a new version of the application the caller is responsible for deleting the appDir returned

func UpdateCollectorSpecsWithRegistryData

func UpdateCollectorSpecsWithRegistryData(collectors []*troubleshootv1beta2.Collect, localRegistryInfo types.RegistrySettings, knownImages []kotsv1beta1.InstallationImage, license *kotsv1beta1.License) ([]*troubleshootv1beta2.Collect, error)

UpdateCollectorSpecsWithRegistryData takes an array of collectors and some environment data (local registry info and license, etc) any image that needs to be rewritten to be compatible with the local registry settings or proxy pull will be updated and replaced in the spec. any required image pull secret will be automatically inserted into the spec an error is returned if anything failed, but the collectors param can always be used after calling (assuming no error)

local registry always overwrites images proxy registry only overwrites private images

Types

type AppRollbackError

type AppRollbackError struct {
	AppID    string
	Sequence int64
}

func (AppRollbackError) Error

func (e AppRollbackError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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