Skip to content

Commit

Permalink
fix(pg): use 512M as default memory request (#448)
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Bouquillon authored Dec 18, 2023
1 parent f93737a commit 2b07624
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/kontinuous/tests/__snapshots__/extends-ovh.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ spec:
limits:
memory: 1G
requests:
memory: 128M
memory: 512M
storage:
size: 8Gi
storageClass: csi-cinder-high-speed
Expand Down Expand Up @@ -670,7 +670,7 @@ spec:
limits:
memory: 1G
requests:
memory: 128M
memory: 512M
storage:
size: 8Gi
storageClass: csi-cinder-high-speed
Expand Down
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: 128M
memory: 512M
storage:
size: 8Gi
storageClass: managed-csi
Expand Down Expand Up @@ -852,7 +852,7 @@ spec:
limits:
memory: 1G
requests:
memory: 128M
memory: 512M
storage:
size: 8Gi
storageClass: managed-csi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ spec:
limits:
memory: 1G
requests:
memory: 128M
memory: 512M
storage:
size: 8Gi
storageClass: csi-cinder-high-speed
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) `128M` }}"
~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` }}"
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 2b07624

Please sign in to comment.