Skip to content

Commit

Permalink
fix(pg): default resources format (#432)
Browse files Browse the repository at this point in the history
  • Loading branch information
matmut7 authored Oct 16, 2023
1 parent 5cefc50 commit b376b25
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions packages/kontinuous/tests/__snapshots__/extends-ovh.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -593,9 +593,9 @@ spec:
imagePullPolicy: IfNotPresent
resources:
limits:
memory: 1Gb
memory: 1G
requests:
memory: 128Mb
memory: 128M
storage:
size: 8Gi
storageClass: csi-cinder-high-speed
Expand Down Expand Up @@ -666,9 +666,9 @@ spec:
imagePullPolicy: IfNotPresent
resources:
limits:
memory: 1Gb
memory: 1G
requests:
memory: 128Mb
memory: 128M
storage:
size: 8Gi
storageClass: csi-cinder-high-speed
Expand Down
8 changes: 4 additions & 4 deletions packages/kontinuous/tests/__snapshots__/extends-ovh.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -756,9 +756,9 @@ spec:
imagePullPolicy: IfNotPresent
resources:
limits:
memory: 1Gb
memory: 1G
requests:
memory: 128Mb
memory: 128M
storage:
size: 8Gi
storageClass: managed-csi
Expand Down Expand Up @@ -848,9 +848,9 @@ spec:
imagePullPolicy: IfNotPresent
resources:
limits:
memory: 1Gb
memory: 1G
requests:
memory: 128Mb
memory: 128M
storage:
size: 8Gi
storageClass: managed-csi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -350,9 +350,9 @@ spec:
imagePullPolicy: IfNotPresent
resources:
limits:
memory: 1Gb
memory: 1G
requests:
memory: 128Mb
memory: 128M
storage:
size: 8Gi
storageClass: csi-cinder-high-speed
Expand Down
2 changes: 1 addition & 1 deletion packages/kontinuous/tests/__snapshots__/pg.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ spec:
imagePullPolicy: IfNotPresent
resources:
limits:
memory: 1Gb
memory: 1G
requests:
memory: 42Mb
storage:
Expand Down
6 changes: 3 additions & 3 deletions plugins/fabrique/charts/pg/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ 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) `128Mb` }}"
~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` }}"
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) `1Gb` }}"
~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` }}"

backup:
~tpl~enabled: "{{ (or .Values.Parent.backup.enabled .Values.global.isProd .Values.global.isPreProd) | ternary `true` `false` }}"
schedule: "0 0 0 * * *" # daily
Expand Down

0 comments on commit b376b25

Please sign in to comment.