Skip to content

Commit 4ecc9de

Browse files
committed
S-108712 Review changes
1 parent 5103c23 commit 4ecc9de

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

templates/release-statefulset.yaml

+4-2
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ spec:
102102
value: {{ include "postgresql.subchart" . }}
103103
- name: POSTGRESQL_PORT
104104
value: {{ (include "release.postgresql.service.port" .) | quote }}
105+
resources: {{- include "common.resources.preset" (dict "type" "nano") | nindent 12 }}
105106
{{- end }}
106107
{{- if and (not .Values.external.mq.enabled) .Values.rabbitmq.install }}
107108
- name: wait-for-rabbitmq
@@ -120,6 +121,7 @@ spec:
120121
value: {{ include "rabbitmq.subchart" . }}
121122
- name: RABBITMQ_PORT
122123
value: {{ .Values.rabbitmq.service.ports.amqp | quote }}
124+
resources: {{- include "common.resources.preset" (dict "type" "nano") | nindent 12 }}
123125
{{- end }}
124126
{{- end }}
125127
{{- if and .Values.volumePermissions.enabled .Values.persistence.enabled }}
@@ -135,8 +137,8 @@ spec:
135137
securityContext: {{- .Values.volumePermissions.containerSecurityContext | toYaml | nindent 12 }}
136138
{{- if .Values.volumePermissions.resources }}
137139
resources: {{- toYaml .Values.volumePermissions.resources | nindent 12 }}
138-
{{- else if ne .Values.volumePermissions.resourcesPreset "none" }}
139-
resources: {{- include "release.resources.preset" (dict "type" .Values.volumePermissions.resourcesPreset) | nindent 12 }}
140+
{{- else }}
141+
resources: {{- include "common.resources.preset" (dict "type" "nano") | nindent 12 }}
140142
{{- end }}
141143
volumeMounts:
142144
{{- range $path := .Values.persistence.paths }}

values.yaml

-9
Original file line numberDiff line numberDiff line change
@@ -1376,15 +1376,6 @@ volumePermissions:
13761376
find "${path}" -mindepth 1 -maxdepth 1 -not -name ".snapshot" -not -name "lost+found" | \
13771377
xargs -r chown -R "{{ .Values.containerSecurityContext.runAsUser }}:{{ .Values.podSecurityContext.fsGroup }}"
13781378
done
1379-
## Init Container resource requests and limits
1380-
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1381-
## We usually recommend not to specify default resources and to leave this as a conscious
1382-
## choice for the user. This also increases chances charts run on environments with little
1383-
## resources, such as Minikube. If you do want to specify resources, uncomment the following
1384-
## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
1385-
## @param volumePermissions.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if volumePermissions.resources is set (volumePermissions.resources is recommended for production).
1386-
##
1387-
resourcesPreset: "nano"
13881379
## @param volumePermissions.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
13891380
## @param volumePermissions.resources.limits Init container volume-permissions resource limits
13901381
## @param volumePermissions.resources.requests Init container volume-permissions resource requests

0 commit comments

Comments
 (0)