add case for `getBaseImagePath` for 3rd party registry providers

This commit is contained in:
alexyaang 2023-09-06 09:48:54 -04:00
Родитель ee949ab638
Коммит cca9cd417c
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -25,9 +25,10 @@ export function getBaseImagePathFromRegistry(registry: CommonRegistry): string {
} else if (isDockerHubRegistry(registry)) {
registry = registry as CommonRegistry;
return registry.label.toLowerCase();
} else {
registry = registry as CommonRegistry;
return registry.baseUrl.authority.toLowerCase();
}
throw new Error(l10n.t('The type of registry is not supported. Unable to get base image path'));
}
export function getFullImageNameFromTag(tag: CommonTag): string {