Skip to content

Commit

Permalink
Update defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
sdess09 committed Sep 21, 2023
1 parent a6fb8ef commit 3ed127d
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ const WebService = {
name,
smartOptimization: true,
expanded: true,
cpu: ServiceField.string('100', porterJson?.apps?.[name]?.config?.resources?.requests?.cpu ? porterJson?.apps?.[name]?.config?.resources?.requests?.cpu.replace('m', '') : undefined),
ram: ServiceField.string('256', porterJson?.apps?.[name]?.config?.resources?.requests?.memory ? porterJson?.apps?.[name]?.config?.resources?.requests?.memory.replace('Mi', '') : undefined),
cpu: ServiceField.string('180', porterJson?.apps?.[name]?.config?.resources?.requests?.cpu ? porterJson?.apps?.[name]?.config?.resources?.requests?.cpu.replace('m', '') : undefined),
ram: ServiceField.string('380', porterJson?.apps?.[name]?.config?.resources?.requests?.memory ? porterJson?.apps?.[name]?.config?.resources?.requests?.memory.replace('Mi', '') : undefined),
startCommand: ServiceField.string('', porterJson?.apps?.[name]?.run),
type: 'web',
replicas: ServiceField.string('1', porterJson?.apps?.[name]?.config?.replicaCount),
Expand Down Expand Up @@ -336,8 +336,8 @@ const WorkerService = {
name,
expanded: true,
smartOptimization: true,
cpu: ServiceField.string('100', porterJson?.apps?.[name]?.config?.resources?.requests?.cpu ? porterJson?.apps?.[name]?.config?.resources?.requests?.cpu.replace('m', '') : undefined),
ram: ServiceField.string('256', porterJson?.apps?.[name]?.config?.resources?.requests?.memory ? porterJson?.apps?.[name]?.config?.resources?.requests?.memory.replace('Mi', '') : undefined),
cpu: ServiceField.string('180', porterJson?.apps?.[name]?.config?.resources?.requests?.cpu ? porterJson?.apps?.[name]?.config?.resources?.requests?.cpu.replace('m', '') : undefined),
ram: ServiceField.string('380', porterJson?.apps?.[name]?.config?.resources?.requests?.memory ? porterJson?.apps?.[name]?.config?.resources?.requests?.memory.replace('Mi', '') : undefined),
startCommand: ServiceField.string('', porterJson?.apps?.[name]?.run),
type: 'worker',
replicas: ServiceField.string('1', porterJson?.apps?.[name]?.config?.replicaCount),
Expand Down Expand Up @@ -422,8 +422,8 @@ const JobService = {
name,
expanded: true,
smartOptimization: true,
cpu: ServiceField.string('100', porterJson?.apps?.[name]?.config?.resources?.requests?.cpu ? porterJson?.apps?.[name]?.config?.resources?.requests?.cpu.replace('m', '') : undefined),
ram: ServiceField.string('256', porterJson?.apps?.[name]?.config?.resources?.requests?.memory ? porterJson?.apps?.[name]?.config?.resources?.requests?.memory.replace('Mi', '') : undefined),
cpu: ServiceField.string('180', porterJson?.apps?.[name]?.config?.resources?.requests?.cpu ? porterJson?.apps?.[name]?.config?.resources?.requests?.cpu.replace('m', '') : undefined),
ram: ServiceField.string('380', porterJson?.apps?.[name]?.config?.resources?.requests?.memory ? porterJson?.apps?.[name]?.config?.resources?.requests?.memory.replace('Mi', '') : undefined),
startCommand: ServiceField.string('', porterJson?.apps?.[name]?.run),
type: 'job',
jobsExecuteConcurrently: ServiceField.boolean(false, porterJson?.apps?.[name]?.config?.allowConcurrent),
Expand Down Expand Up @@ -492,8 +492,8 @@ const ReleaseService = {
name,
expanded: true,
smartOptimization: true,
cpu: ServiceField.string('100', porterJson?.release?.config?.resources?.requests?.cpu ? porterJson?.release?.config?.resources?.requests?.cpu.replace('m', '') : undefined),
ram: ServiceField.string('256', porterJson?.release?.config?.resources?.requests?.memory ? porterJson?.release?.config?.resources?.requests?.memory.replace('Mi', '') : undefined),
cpu: ServiceField.string('180', porterJson?.release?.config?.resources?.requests?.cpu ? porterJson?.release?.config?.resources?.requests?.cpu.replace('m', '') : undefined),
ram: ServiceField.string('380', porterJson?.release?.config?.resources?.requests?.memory ? porterJson?.release?.config?.resources?.requests?.memory.replace('Mi', '') : undefined),
startCommand: ServiceField.string('', porterJson?.release?.run),
type: 'release',
canDelete: porterJson?.release == null,
Expand Down

0 comments on commit 3ed127d

Please sign in to comment.