Skip to content

Commit

Permalink
fix: use default memory requests=limits for prod cnpg (#454)
Browse files Browse the repository at this point in the history
  • Loading branch information
achauve authored Dec 20, 2023
1 parent f94cc6b commit 9c0ff8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/kontinuous/tests/__snapshots__/extends-ovh.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ spec:
limits:
memory: 1G
requests:
memory: 512M
memory: 1G
storage:
size: 8Gi
storageClass: managed-csi
Expand Down Expand Up @@ -852,7 +852,7 @@ spec:
limits:
memory: 1G
requests:
memory: 512M
memory: 1G
storage:
size: 8Gi
storageClass: managed-csi
Expand Down
2 changes: 1 addition & 1 deletion plugins/fabrique/charts/pg/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ cnpg-cluster:

resources:
requests:
~tpl~memory: "{{ or (and .Values.Parent._ProjectValues (index .Values.Parent._ProjectValues `cnpg-cluster`).resources (index .Values.Parent._ProjectValues `cnpg-cluster`).resources.requests (index .Values.Parent._ProjectValues `cnpg-cluster`).resources.requests.memory) `512M` }}"
~tpl~memory: "{{ or (and .Values.Parent._ProjectValues (index .Values.Parent._ProjectValues `cnpg-cluster`).resources (index .Values.Parent._ProjectValues `cnpg-cluster`).resources.requests (index .Values.Parent._ProjectValues `cnpg-cluster`).resources.requests.memory) (.Values.global.isProd | ternary `1G` `512M`) }}"
limits:
~tpl~memory: "{{ or (and .Values.Parent._ProjectValues (index .Values.Parent._ProjectValues `cnpg-cluster`).resources (index .Values.Parent._ProjectValues `cnpg-cluster`).resources.limits (index .Values.Parent._ProjectValues `cnpg-cluster`).resources.limits.memory) `1G` }}"

Expand Down

0 comments on commit 9c0ff8d

Please sign in to comment.