Skip to content

Commit

Permalink
fix: do not apply resource till applyparams() calls
Browse files Browse the repository at this point in the history
Signed-off-by: Wen Zhou <[email protected]>
  • Loading branch information
zdtsw authored and openshift-merge-bot[bot] committed Sep 10, 2024
1 parent 8b63c37 commit 005b9d2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions components/workbenches/workbenches.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,6 @@ func (w *Workbenches) ReconcileComponent(ctx context.Context, cli client.Client,
return err
}
}
if err := deploy.DeployManifestsFromPath(ctx, cli, owner, notebookControllerPath, dscispec.ApplicationsNamespace, ComponentName, enabled); err != nil {
return fmt.Errorf("failed to apply manifetss %s: %w", notebookControllerPath, err)
}
l.WithValues("Path", notebookControllerPath).Info("apply manifests done NBC")

// Update image parameters for nbc
if enabled {
Expand All @@ -149,6 +145,11 @@ func (w *Workbenches) ReconcileComponent(ctx context.Context, cli client.Client,
}
}
}
if err := deploy.DeployManifestsFromPath(ctx, cli, owner, notebookControllerPath, dscispec.ApplicationsNamespace, ComponentName, enabled); err != nil {
return fmt.Errorf("failed to apply manifetss %s: %w", notebookControllerPath, err)
}
l.WithValues("Path", notebookControllerPath).Info("apply manifests done NBC")

if err := deploy.DeployManifestsFromPath(ctx, cli, owner,
kfnotebookControllerPath,
dscispec.ApplicationsNamespace,
Expand Down

0 comments on commit 005b9d2

Please sign in to comment.