Skip to content

Commit e6f0b9f

Browse files
authored
Merge pull request #33 from small-hack/fix/resource-request-too-big
fix issue with missing m on cpu requets. we want 100m, not 100
2 parents aec91db + 0d3d320 commit e6f0b9f

File tree

5 files changed

+23
-13
lines changed

5 files changed

+23
-13
lines changed

.github/workflows/ci-helm-lint-test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,13 @@ jobs:
102102
postgresql:
103103
pg_hba:
104104
- hostssl all all all cert
105+
resources:
106+
requests:
107+
cpu: "50m"
108+
memory: "256Mi"
109+
limits:
110+
cpu: "1000m"
111+
memory: "1024Mi"
105112
storage:
106113
size: 1Gi
107114
testApp:

charts/cloudnative-pg-cluster/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: cnpg-cluster
33
description: Create postgres tenant clusters managed by the CNPG Operator
44
type: application
5-
version: 0.3.13
5+
version: 0.3.14
66

77
maintainers:
88
- name: "cloudymax"

charts/cloudnative-pg-cluster/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# cnpg-cluster
22

3-
![Version: 0.3.13](https://img.shields.io/badge/Version-0.3.13-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
3+
![Version: 0.3.14](https://img.shields.io/badge/Version-0.3.14-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
44

55
Create postgres tenant clusters managed by the CNPG Operator
66

@@ -43,8 +43,8 @@ Create postgres tenant clusters managed by the CNPG Operator
4343
| name | string | `"cnpg"` | |
4444
| postgresql.pg_hba | list | `["hostnossl all all 0.0.0.0/0 reject","hostssl all all 0.0.0.0/0 cert clientcert=verify-full"]` | records for the pg_hba.conf file. ref: https://www.postgresql.org/docs/current/auth-pg-hba-conf.html |
4545
| primaryUpdateStrategy | string | `"unsupervised"` | |
46-
| resources.limits | object | `{"cpu":1000,"memory":"1024Mi"}` | resource limit for pods |
47-
| resources.requests | object | `{"cpu":500,"memory":"512Mi"}` | minimum resources guaranteed for pods |
46+
| resources.limits | object | `{"cpu":"1000m","memory":"512Mi"}` | resource limit for pods |
47+
| resources.requests | object | `{"cpu":"50m","memory":"64Mi"}` | minimum resources guaranteed for pods |
4848
| scheduledBackup.name | string | `"example-backup"` | name to use for your scheduled backup job |
4949
| scheduledBackup.spec.backupOwnerReference | string | `"self"` | |
5050
| scheduledBackup.spec.cluster.name | string | `"pg-backup"` | |
@@ -54,4 +54,4 @@ Create postgres tenant clusters managed by the CNPG Operator
5454
| testApp.enabled | bool | `false` | |
5555

5656
----------------------------------------------
57-
Autogenerated from chart metadata using [helm-docs v1.12.0](https://github.com/norwoodj/helm-docs/releases/v1.12.0)
57+
Autogenerated from chart metadata using [helm-docs v1.13.1](https://github.com/norwoodj/helm-docs/releases/v1.13.1)

charts/cloudnative-pg-cluster/templates/cnpg_cluster.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ spec:
2828
postgresql:
2929
{{- toYaml . | nindent 4 }}
3030
{{- end }}
31+
{{- with .Values.resources }}
3132
resources:
32-
{{- toYaml .Values.resources | nindent 4 }}
33+
{{- toYaml . | nindent 4 }}
34+
{{- end }}
3335
storage:
3436
size: {{ .Values.storage.size }}
3537
bootstrap:

charts/cloudnative-pg-cluster/values.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -145,15 +145,16 @@ storage:
145145
# -- how much storage to allocate to the postgresql cluster
146146
size: 1Gi
147147

148-
resources:
148+
# from https://cloudnative-pg.io/documentation/1.22/resource_management/
149+
resources: {}
149150
# -- minimum resources guaranteed for pods
150-
requests:
151-
cpu: 500
152-
memory: "512Mi"
151+
# requests:
152+
# cpu: "50m"
153+
# memory: "64Mi"
153154
# -- resource limit for pods
154-
limits:
155-
cpu: 1000
156-
memory: "1024Mi"
155+
# limits:
156+
# cpu: "1000m"
157+
# memory: "512Mi"
157158

158159
testApp:
159160
## -- create a test deployment to verify db connectivity.

0 commit comments

Comments
 (0)