Skip to content

Commit 1896811

Browse files
Actually add back some resource limits for operator (#1080)
JSON is hard... Fixes DACH-NY/cn-test-failures#4535 (again) Signed-off-by: Martin Florian <[email protected]>
1 parent 5094952 commit 1896811

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

cluster/expected/operator/expected.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -599,12 +599,12 @@
599599
"name": "docker-reg-cred"
600600
}
601601
],
602-
"limits": {
603-
"cpu": 1,
604-
"memory": "2G"
605-
},
606602
"maxHistory": 10,
607603
"resources": {
604+
"limits": {
605+
"cpu": 1,
606+
"memory": "2G"
607+
},
608608
"requests": {
609609
"cpu": 0.2,
610610
"memory": "1G"

cluster/pulumi/operator/src/operator.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ export const operator = new k8s.helm.v3.Release(
2727
version: '2.1.0',
2828
namespace: namespace.ns.metadata.name,
2929
values: {
30-
limits: {
31-
cpu: 1,
32-
memory: config.optionalEnv('OPERATOR_MEMORY_LIMIT') || '2G',
33-
},
3430
resources: {
31+
limits: {
32+
cpu: 1,
33+
memory: config.optionalEnv('OPERATOR_MEMORY_LIMIT') || '2G',
34+
},
3535
requests: {
3636
cpu: 0.2,
3737
memory: config.optionalEnv('OPERATOR_MEMORY_REQUESTS') || '1G',

0 commit comments

Comments
 (0)