Skip to content

Commit

Permalink
incorporated review comments
Browse files Browse the repository at this point in the history
Signed-off-by: msvinaykumar <[email protected]>
  • Loading branch information
msvinaykumar committed Dec 9, 2024
1 parent 0bad108 commit ce6b674
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,13 @@ private KruizeObject createKruizeObject(String target_cluster) {
KruizeObject kruizeObject = new KruizeObject();
try {

if (KruizeDeploymentInfo.is_ros_enabled && null != target_cluster && target_cluster.equalsIgnoreCase(AnalyzerConstants.REMOTE)) { // todo call this in function and use across every where
new ExperimentDBService().loadExperimentFromDBByName(mainKruizeExperimentMAP, experimentName);
} else {
if (KruizeDeploymentInfo.is_ros_enabled){
if(null == target_cluster || target_cluster.equalsIgnoreCase(AnalyzerConstants.REMOTE)){
new ExperimentDBService().loadExperimentFromDBByName(mainKruizeExperimentMAP, experimentName);
}else{
new ExperimentDBService().loadLMExperimentFromDBByName(mainKruizeExperimentMAP, experimentName);
}
}else{
new ExperimentDBService().loadLMExperimentFromDBByName(mainKruizeExperimentMAP, experimentName);
}

Expand Down

0 comments on commit ce6b674

Please sign in to comment.