Skip to content

Commit

Permalink
fix: use default storage when launch a session Renku 2.0 (#3295)
Browse files Browse the repository at this point in the history
fix #3291
  • Loading branch information
andre-code authored Sep 10, 2024
1 parent f584de2 commit fc747ab
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,9 @@ const OptionOrSingleValueContent = ({
<span className={detailLabelClassName}>
<span className={styles.detailUnit}>GB</span> RAM
</span>{" "}
<span className={detailValueClassName}>{sessionClass.max_storage}</span>
<span className={detailValueClassName}>
{sessionClass.default_storage}
</span>
<span className={detailLabelClassName}>
<span className={styles.detailUnit}>GB</span> Disk
</span>{" "}
Expand Down
2 changes: 1 addition & 1 deletion client/src/features/sessionsV2/SessionView/SessionView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ export function SessionView({
name: launcherResourceClass.name,
cpu: launcherResourceClass.cpu,
memory: `${launcherResourceClass.memory}G`,
storage: `${launcherResourceClass.max_storage}G`,
storage: `${launcherResourceClass.default_storage}G`,
gpu: launcherResourceClass.gpu,
}}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export function SelectResourceClassModal({
resourceRequests={{
cpu: launcherClass.cpu,
memory: `${launcherClass.memory}G`,
storage: `${launcherClass.max_storage}G`,
storage: `${launcherClass.default_storage}G`,
gpu: launcherClass.gpu,
}}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ export default function useSessionResourceClass({
dispatch(
startSessionOptionsV2Slice.actions.setSessionClass(envClass.id)
);
dispatch(
startSessionOptionsV2Slice.actions.setStorage(
envClass.default_storage
)
);
setIsPendingResourceClass(false);
}
},
Expand Down

0 comments on commit fc747ab

Please sign in to comment.