Skip to content

Commit 6044c4b

Browse files
committed
Add resources to Helm pgo/pgo-upgrade deployments
1 parent 3ab5384 commit 6044c4b

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

helm/install/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ description: Installer for PGO, the open source Postgres Operator from Crunchy D
44

55
type: application
66
# The version below should match the version on the PostgresCluster CRD
7-
version: 0.6.0
7+
version: 0.6.1
88
appVersion: 5.2.0

helm/install/templates/manager-upgrade.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ spec:
3434
value: {{ .Values.workers | quote }}
3535
{{- end }}
3636
{{- include "install.relatedImages" . | indent 8 }}
37+
{{- if .Values.resources.upgrade }}
38+
resources:
39+
{{- toYaml .Values.resources.upgrade | nindent 10 }}
40+
{{- end }}
3741
securityContext:
3842
allowPrivilegeEscalation: false
3943
capabilities: { drop: [ALL] }

helm/install/templates/manager.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ spec:
4040
- name: CHECK_FOR_UPGRADES
4141
value: "false"
4242
{{- end }}
43+
{{- if .Values.resources.controller }}
44+
resources:
45+
{{- toYaml .Values.resources.controller | nindent 10 }}
46+
{{- end }}
4347
securityContext:
4448
allowPrivilegeEscalation: false
4549
capabilities: { drop: [ALL] }

helm/install/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,8 @@ debug: true
4040
# imagePullSecretNames is a list of secret names to use for pulling controller images.
4141
# More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
4242
imagePullSecretNames: []
43+
44+
# Resource configuration of the PostgresCluster and PGUpgrade controllers.
45+
resources:
46+
controller: {}
47+
upgrade: {}

0 commit comments

Comments
 (0)