Skip to content

Commit

Permalink
Update resource tiers
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwatson484 committed Sep 14, 2024
1 parent 0fbbf67 commit cfeaa00
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion helm-library/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: v2
name: helm-library
description: A Helm library chart
type: library
version: 2.26.0
version: 2.27.0
8 changes: 8 additions & 0 deletions helm-library/templates/_container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ securityContext:
readOnlyRootFilesystem: {{ .Values.container.readOnlyRootFilesystem | default true }}
allowPrivilegeEscalation: {{ .Values.container.allowPrivilegeEscalation | default false }}
resources:
{{- if .Values.container.resourceTier }}
{{- if eq .Values.container.resourceTier "S" }}
requests:
memory: "100Mi"
Expand All @@ -49,6 +50,13 @@ resources:
limits:
memory: "1Gi"
{{- else }}
requests:
memory: "250Mi"
cpu: "250m"
limits:
memory: "250Mi"
{{- end }}
{{- else }}
requests:
memory: {{ required (printf $requiredMsg "container.requestMemory") .Values.container.requestMemory | quote }}
cpu: {{ required (printf $requiredMsg "container.requestCpu") .Values.container.requestCpu | quote }}
Expand Down

0 comments on commit cfeaa00

Please sign in to comment.