Skip to content

Commit

Permalink
Remove JUPYTER_IMAGE enviroment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
atheo89 committed Jan 14, 2025
1 parent 330d816 commit 7c2aaca
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -611,13 +611,6 @@ func SetContainerImageFromRegistry(ctx context.Context, config *rest.Config, not
imageHash := items[0].(map[string]interface{})["dockerImageReference"].(string)
// Update the Containers[i].Image value
notebook.Spec.Template.Spec.Containers[i].Image = imageHash
// Update the JUPYTER_IMAGE environment variable with the image selection for example "jupyter-datascience-notebook:2023.2"
for i, envVar := range container.Env {
if envVar.Name == "JUPYTER_IMAGE" {
container.Env[i].Value = imageSelection
break
}
}
imagestreamFound = true
break
}
Expand Down

0 comments on commit 7c2aaca

Please sign in to comment.