diff --git a/components/workbenches/workbenches.go b/components/workbenches/workbenches.go index 5875b1e848f..a10addccf70 100644 --- a/components/workbenches/workbenches.go +++ b/components/workbenches/workbenches.go @@ -136,18 +136,16 @@ func (w *Workbenches) ReconcileComponent(ctx context.Context, cli client.Client, } l.WithValues("Path", notebookControllerPath).Info("apply manifests done NBC") - // Update image parameters for nbc in downstream + // Update image parameters for nbc if enabled { if (dscispec.DevFlags == nil || dscispec.DevFlags.ManifestsUri == "") && (w.DevFlags == nil || len(w.DevFlags.Manifests) == 0) { - if platform == cluster.ManagedRhods || platform == cluster.SelfManagedRhods { - // for kf-notebook-controller image - if err := deploy.ApplyParams(notebookControllerPath, imageParamMap); err != nil { - return fmt.Errorf("failed to update image %s: %w", notebookControllerPath, err) - } - // for odh-notebook-controller image - if err := deploy.ApplyParams(kfnotebookControllerPath, imageParamMap); err != nil { - return fmt.Errorf("failed to update image %s: %w", kfnotebookControllerPath, err) - } + // for kf-notebook-controller image + if err := deploy.ApplyParams(notebookControllerPath, imageParamMap); err != nil { + return fmt.Errorf("failed to update image %s: %w", notebookControllerPath, err) + } + // for odh-notebook-controller image + if err := deploy.ApplyParams(kfnotebookControllerPath, imageParamMap); err != nil { + return fmt.Errorf("failed to update image %s: %w", kfnotebookControllerPath, err) } } }