Skip to content

Commit 11bd261

Browse files
committed
🐛 Make cache settings optional
1 parent d6b6d7d commit 11bd261

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

s3-nginx-proxy-chart/templates/deployment.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,12 @@ spec:
3939
sizeLimit: 10Mi
4040
- name: nginx-cache
4141
emptyDir:
42-
medium: {{ .Values.cache.medium }}
43-
sizeLimit: {{ .Values.cache.sizeLimit }}
42+
{{- with .Values.cache.medium }}
43+
medium: {{ . }}
44+
{{- end }}
45+
{{- with .Values.cache.sizeLimit }}
46+
sizeLimit: {{ . }}
47+
{{- end }}
4448
containers:
4549
- name: {{ .Chart.Name }}-nginx
4650
securityContext:

s3-nginx-proxy-chart/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ virtualHosts:
1313
region: us-west-1
1414

1515
cache:
16-
medium: Default
16+
# medium: Memory
1717
sizeLimit: 5Gi
1818
expiry: 60m
1919

0 commit comments

Comments
 (0)