Skip to content

Commit

Permalink
Bump test and prod deployment resources.
Browse files Browse the repository at this point in the history
Minor type cleanup (copy from sims)
  • Loading branch information
NickPhura committed Mar 19, 2024
1 parent 2f5cd0d commit 68e29f2
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions api/.pipeline/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,11 @@ const phases = {
logLevel: 'info',
nodeOptions: '--max_old_space_size=2250', // 75% of memoryLimit (bytes)
cpuRequest: '50m',
cpuLimit: '1000m',
cpuLimit: '1750m',
memoryRequest: '100Mi',
memoryLimit: '3Gi',
memoryLimit: '6Gi',
replicas: '2',
replicasMax: '4'
replicasMax: '2'
},
prod: {
namespace: 'a0ec71-prod',
Expand All @@ -148,11 +148,11 @@ const phases = {
logLevel: 'warn',
nodeOptions: '--max_old_space_size=2250', // 75% of memoryLimit (bytes)
cpuRequest: '50m',
cpuLimit: '1000m',
cpuLimit: '1750m',
memoryRequest: '100Mi',
memoryLimit: '3Gi',
memoryLimit: '8Gi',
replicas: '2',
replicasMax: '4'
replicasMax: '2'
}
};

Expand Down
4 changes: 2 additions & 2 deletions api/src/repositories/user-repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export type SystemUser = z.infer<typeof SystemUser>;

export const SystemUserExtended = SystemUser.extend({
identity_source: z.string(),
role_ids: z.array(z.number()).default([]),
role_names: z.array(z.string()).default([])
role_ids: z.array(z.number()),
role_names: z.array(z.string())
});

export type SystemUserExtended = z.infer<typeof SystemUserExtended>;
Expand Down
12 changes: 6 additions & 6 deletions app/.pipeline/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,11 @@ const phases = {
env: 'test',
sso: config.sso.test,
cpuRequest: '50m',
cpuLimit: '400m',
cpuLimit: '500m',
memoryRequest: '100Mi',
memoryLimit: '400Mi',
memoryLimit: '1Gi',
replicas: '2',
replicasMax: '3'
replicasMax: '2'
},
prod: {
namespace: 'a0ec71-prod',
Expand All @@ -131,11 +131,11 @@ const phases = {
env: 'prod',
sso: config.sso.prod,
cpuRequest: '50m',
cpuLimit: '400m',
cpuLimit: '500m',
memoryRequest: '100Mi',
memoryLimit: '400Mi',
memoryLimit: '1Gi',
replicas: '2',
replicasMax: '3'
replicasMax: '2'
}
};

Expand Down
8 changes: 4 additions & 4 deletions database/.pipeline/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ const phases = {
dbSetupDockerfilePath: dbSetupDockerfilePath,
volumeCapacity: '3Gi',
cpuRequest: '50m',
cpuLimit: '500m',
cpuLimit: '2000m',
memoryRequest: '100Mi',
memoryLimit: '3Gi',
memoryLimit: '5Gi',
replicas: '1'
},
prod: {
Expand All @@ -117,9 +117,9 @@ const phases = {
dbSetupDockerfilePath: dbSetupDockerfilePath,
volumeCapacity: '5Gi',
cpuRequest: '50m',
cpuLimit: '500m',
cpuLimit: '2000m',
memoryRequest: '100Mi',
memoryLimit: '3Gi',
memoryLimit: '8Gi',
replicas: '1'
}
};
Expand Down

0 comments on commit 68e29f2

Please sign in to comment.