mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 07:49:41 +02:00
fix(kube): deploy app with image [EE-5738] (#9194)
This commit is contained in:
parent
a9c6fa5ac2
commit
de5c959e24
5 changed files with 17 additions and 10 deletions
|
@ -1,4 +1,4 @@
|
|||
import { buildImageFullURI, imageContainsURL } from '@/react/docker/images/utils';
|
||||
import { buildImageFullURIFromModel, imageContainsURL } from '@/react/docker/images/utils';
|
||||
|
||||
angular.module('portainer.docker').factory('ImageHelper', ImageHelperFactory);
|
||||
function ImageHelperFactory() {
|
||||
|
@ -28,9 +28,8 @@ function ImageHelperFactory() {
|
|||
* @param {PorImageRegistryModel} registry
|
||||
*/
|
||||
function createImageConfigForContainer(imageModel) {
|
||||
const registry = imageModel.UseRegistry ? imageModel.Registry : undefined;
|
||||
return {
|
||||
fromImage: buildImageFullURI(imageModel.Image, registry),
|
||||
fromImage: buildImageFullURIFromModel(imageModel),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue