-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor hardware profile and pod spec options across frontend compon…
…ents This commit introduces significant changes to how hardware profiles and pod specification options are managed across the frontend: - Replaced nodeSelectors array with a single nodeSelector object in hardware profile types - Updated related components to work with the new nodeSelector structure - Removed deprecated accelerator profile and notebook size handling - Introduced new pod spec options state management for notebooks and model serving - Updated validation and form handling to support new hardware profile concepts - Modified CRD to reflect the new nodeSelector structure
- Loading branch information
1 parent
8024849
commit 6b08118
Showing
61 changed files
with
2,275 additions
and
1,232 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import { ModelServingPodSpecOptions } from '~/concepts/hardwareProfiles/useModelServingPodSpecOptionsState'; | ||
|
||
type MockResourceConfigType = Partial<ModelServingPodSpecOptions>; | ||
|
||
export const mockModelServingPodSpecOptions = ({ | ||
resources = { | ||
requests: { | ||
cpu: '1', | ||
memory: '1Gi', | ||
}, | ||
limits: { | ||
cpu: '1', | ||
memory: '1Gi', | ||
}, | ||
}, | ||
tolerations = [], | ||
nodeSelector = {}, | ||
affinity = {}, | ||
selectedAcceleratorProfile, | ||
selectedHardwareProfile, | ||
selectedModelSize = { | ||
name: 'small', | ||
resources: { | ||
requests: { | ||
cpu: '1', | ||
memory: '1Gi', | ||
}, | ||
limits: { | ||
cpu: '1', | ||
memory: '1Gi', | ||
}, | ||
}, | ||
}, | ||
}: MockResourceConfigType): ModelServingPodSpecOptions => ({ | ||
resources, | ||
tolerations, | ||
nodeSelector, | ||
affinity, | ||
selectedAcceleratorProfile, | ||
selectedHardwareProfile, | ||
selectedModelSize, | ||
}); |
Oops, something went wrong.