diff --git a/backend/src/utils/notebookUtils.ts b/backend/src/utils/notebookUtils.ts index adaf935b59..5509e5ec54 100644 --- a/backend/src/utils/notebookUtils.ts +++ b/backend/src/utils/notebookUtils.ts @@ -163,7 +163,6 @@ export const assembleNotebook = async ( const notebookSize = getNotebookSize(notebookSizeName); - let imageUrl = ``; let imageSelection = ``; try { @@ -171,7 +170,6 @@ export const assembleNotebook = async ( const selectedImage = getImageTag(image, imageTagName); - imageUrl = `${selectedImage.image?.dockerImageRepo}:${selectedImage.tag?.name}`; imageSelection = `${selectedImage.image?.name}:${selectedImage.tag?.name}`; } catch (e) { fastify.log.error(`Error getting the image for ${imageName}:${imageTagName}`); @@ -285,7 +283,7 @@ export const assembleNotebook = async ( enableServiceLinks: false, containers: [ { - image: imageUrl, + image: imageSelection, imagePullPolicy: 'Always', workingDir: MOUNT_PATH, name: name, @@ -301,7 +299,7 @@ export const assembleNotebook = async ( }, { name: 'JUPYTER_IMAGE', - value: imageUrl, + value: imageSelection, }, ...configMapEnvs, ...secretEnvs, diff --git a/frontend/src/api/k8s/notebooks.ts b/frontend/src/api/k8s/notebooks.ts index 85c496facf..84aa61f9d4 100644 --- a/frontend/src/api/k8s/notebooks.ts +++ b/frontend/src/api/k8s/notebooks.ts @@ -50,7 +50,6 @@ export const assembleNotebook = ( existingResources, } = data; const notebookId = overrideNotebookId || translateDisplayNameForK8s(notebookName); - const imageUrl = `${image.imageStream?.status?.dockerImageRepository}:${image.imageVersion?.name}`; const imageSelection = `${image.imageStream?.metadata.name}:${image.imageVersion?.name}`; const { affinity, tolerations, resources } = assemblePodSpecOptions( @@ -120,7 +119,7 @@ export const assembleNotebook = ( enableServiceLinks: false, containers: [ { - image: imageUrl, + image: imageSelection, imagePullPolicy: 'Always', workingDir: ROOT_MOUNT_PATH, name: notebookId, @@ -136,7 +135,7 @@ export const assembleNotebook = ( }, { name: 'JUPYTER_IMAGE', - value: imageUrl, + value: imageSelection, }, ], envFrom,