Skip to content

Commit

Permalink
Merge pull request #524 from zdtsw-forking/fix/path2
Browse files Browse the repository at this point in the history
Fix: downstream workbranch to get imageparams
  • Loading branch information
zdtsw authored Sep 8, 2023
2 parents b32f1f3 + 571cda5 commit 6bfe048
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions components/workbenches/workbenches.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,14 @@ func (w *Workbenches) ReconcileComponent(owner metav1.Object, cli client.Client,
// Update image parameters for notebook image
if enabled {
if dscispec.DevFlags.ManifestsUri == "" {
if err := deploy.ApplyImageParams(notebookImagesPath, imageParamMap); err != nil {
return err
if platform == deploy.OpenDataHub || platform == "" {
if err := deploy.ApplyImageParams(notebookImagesPath, imageParamMap); err != nil {
return err
}
} else {
if err := deploy.ApplyImageParams(notebookImagesPathSupported, imageParamMap); err != nil {
return err
}
}
}
}
Expand Down

0 comments on commit 6bfe048

Please sign in to comment.