Skip to content

Commit

Permalink
fix: use memory requests=limits for prod cnpg
Browse files Browse the repository at this point in the history
  • Loading branch information
achauve committed Dec 19, 2023
1 parent f94cc6b commit 0acf858
Showing 1 changed file with 1 addition and 1 deletion.
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 0acf858

Please sign in to comment.