Description
In order to allow for airgapped installation, KOTS allows for .airgap
files to be uploaded to a "local" container registry. These images are published to the image level only - for example, the image quay.io/jetstack/cert-manager/cert-manager-image
would be published to myregistry.com/cert-manager-image
.
The Installer has an ImageName function which all container images are passed through. Currently, if the configuration for the repository
is set to the default Gitpod registry, it returns the image name given. However, if the repository
is different, it prepends it so it would return myregistry.com/jetstack/cert-manager/cert-manager-image
In order to use the KOTS registry, this needs to switch it to the new format if a non-Gitpod registry is detected.