registry

package
v0.0.0-...-d5808ce Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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, 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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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