Documentation ¶
Index ¶
- func DeleteUnusedImages(appID string, ignoreRollback bool) error
- func GetKotsadmRegistry() (*types.RegistrySettings, error)
- func RewriteImages(appID string, sequence int64, hostname string, username string, ...) (appDir string, finalError error)
- func UpdateCollectorSpecsWithRegistryData(collectors []*troubleshootv1beta2.Collect, ...) ([]*troubleshootv1beta2.Collect, error)
- type AppRollbackError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteUnusedImages ¶
func GetKotsadmRegistry ¶
func GetKotsadmRegistry() (*types.RegistrySettings, error)
func RewriteImages ¶
func RewriteImages(appID string, sequence int64, hostname string, username string, password string, namespace string, isReadOnly bool) (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, installation kotsv1beta1.Installation, license *kotsv1beta1.License, kotsApplication *kotsv1beta1.Application) ([]*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 ¶
func (AppRollbackError) Error ¶
func (e AppRollbackError) Error() string