Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/api/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ import type {
VpcFirewallRuleUpdate,
} from './__generated__/Api'

// API limits encoded in https://github.com/oxidecomputer/omicron/blob/aec3cd8d/nexus/src/app/mod.rs
// API limits encoded in https://github.com/oxidecomputer/omicron/blob/2f7f8074/nexus/src/app/mod.rs#L125-L158
Copy link
Contributor

@charliepark charliepark Jan 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might not care about the latest sha, but if you do, it's a4e9c7a1

Ah, and equivalent lines are L126-L160


export const MAX_NICS_PER_INSTANCE = 8

export const INSTANCE_MAX_CPU = 64
export const INSTANCE_MAX_CPU = 254
export const INSTANCE_MIN_RAM_GiB = 1
export const INSTANCE_MAX_RAM_GiB = 1536

Expand Down
2 changes: 1 addition & 1 deletion test/e2e/instance-create.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ test('Validate CPU and RAM', async ({ page }) => {

const submitButton = page.getByRole('button', { name: 'Create instance' })

const cpuMsg = page.getByText('Can be at most 64').first()
const cpuMsg = page.getByText('Can be at most 254').first()
const memMsg = page.getByText('Can be at most 1536 GiB').first()

await expect(cpuMsg).toBeHidden()
Expand Down
Loading