Documentation ¶
Index ¶
- func GetKotsadmRegistry() (*types.RegistrySettings, error)
- func HasKurlRegistry() (bool, error)
- func RewriteImages(appID string, sequence int64, hostname string, username string, ...) (appDir string, finalError error)
- func UpdateCollectorSpecsWithRegistryData(collectors []*troubleshootv1beta2.Collect, ...) ([]*troubleshootv1beta2.Collect, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetKotsadmRegistry ¶
func GetKotsadmRegistry() (*types.RegistrySettings, error)
func HasKurlRegistry ¶
func RewriteImages ¶
func RewriteImages(appID string, sequence int64, hostname string, username string, password string, namespace string, 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)
Types ¶
This section is empty.