Skip to content

Commit

Permalink
revert helm changes for use of initResources in our values.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnwai committed Aug 7, 2024
1 parent bc65381 commit 53e1690
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion helm/metadata/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ spec:
volumeMounts:
{{- toYaml . | nindent 10 }}
{{- end }}
{{- with .Values.resources }}
{{- with .Values.initResources }}
resources:
{{- toYaml . | nindent 12 }}
{{- end }}
Expand Down
8 changes: 8 additions & 0 deletions helm/metadata/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,14 @@ initVolumeMounts:
readOnly: true
mountPath: /src/.env
subPath: metadata.env
# -- (map) Resource limits for the init container.
initResources:
# -- (map) The maximum amount of resources that the container is allowed to use
limits:
# -- (string) The maximum amount of CPU the container can use
cpu: 0.8
# -- (string) The maximum amount of memory the container can use
memory: 512Mi
# -- (list) Command to run for the init container.
command: ["/bin/sh"]
# -- (list) Arguments to pass to the init container.
Expand Down
2 changes: 1 addition & 1 deletion helm/requestor/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ spec:
volumeMounts:
{{- toYaml . | nindent 10 }}
{{- end }}
{{- with .Values.resources }}
{{- with .Values.initResources }}
resources:
{{- toYaml . | nindent 12 }}
{{- end }}
Expand Down
8 changes: 8 additions & 0 deletions helm/requestor/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,14 @@ resources:
# Init Container
# -- (string) Name of the init container.
initContainerName: requestor-db-migrate
# -- (map) Resource limits for the init container.
initResources:
# -- (map) The maximum amount of resources that the container is allowed to use
limits:
# -- (string) The maximum amount of CPU the container can use
cpu: 0.8
# -- (string) The maximum amount of memory the container can use
memory: 512Mi
# -- (list) Command to run for the init container.
command: ["/bin/sh"]
# -- (list) Arguments to pass to the init container.
Expand Down

0 comments on commit 53e1690

Please sign in to comment.