Skip to content

Commit

Permalink
use resources as initResources for container
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnwai committed Jul 31, 2024
1 parent bce8977 commit 43cb0df
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 18 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.initResources }}
{{- with .Values.resources }}
resources:
{{- toYaml . | nindent 12 }}
{{- end }}
Expand Down
8 changes: 0 additions & 8 deletions helm/metadata/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -285,14 +285,6 @@ 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.initResources }}
{{- with .Values.resources }}
resources:
{{- toYaml . | nindent 12 }}
{{- end }}
Expand Down
8 changes: 0 additions & 8 deletions helm/requestor/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -208,14 +208,6 @@ 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 43cb0df

Please sign in to comment.