File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -185,7 +185,10 @@ def get_source_of_truth_filepath(
185
185
filename = f"jupyter-{ notebook_id } -{ file_suffix } "
186
186
187
187
elif RSTUDIO_NOTEBOOK_ID in notebook_id :
188
- filename = f"rstudio-gpu-{ file_suffix } "
188
+ imagestream_filename = f"rstudio-gpu-{ file_suffix } "
189
+ buildconfig_filename = "cuda-rstudio-buildconfig.yaml"
190
+ _ = imagestream_filename
191
+ filename = buildconfig_filename
189
192
190
193
if not filename :
191
194
raise ValueError (
Original file line number Diff line number Diff line change @@ -378,7 +378,12 @@ def load_manifests_file_for(directory: pathlib.Path) -> Manifest:
378
378
f"Computed filepath '{ manifest_file } ' does not exist."
379
379
)
380
380
381
- imagestream = yaml .safe_load (manifest_file .read_text ())
381
+ # BEWARE: rhds rstudio has imagestream bundled in the buildconfig yaml
382
+ if "buildconfig" in manifest_file .name :
383
+ # imagestream is the first document in the file
384
+ imagestream = next (yaml .safe_load_all (manifest_file .read_text ()))
385
+ else :
386
+ imagestream = yaml .safe_load (manifest_file .read_text ())
382
387
recommended_tags = [
383
388
tag
384
389
for tag in imagestream ["spec" ]["tags" ]
You can’t perform that action at this time.
0 commit comments