Skip to content

Commit 830373e

Browse files
authored
remove shared cache config from helm (#8211)
1 parent de8e9b7 commit 830373e

File tree

3 files changed

+721
-744
lines changed

3 files changed

+721
-744
lines changed

charts/nginx-ingress/templates/_helpers.tpl

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -391,24 +391,14 @@ List of volumes for controller.
391391
{{- if eq (include "nginx-ingress.readOnlyRootFilesystem" .) "true" }}
392392
- name: nginx-etc
393393
emptyDir: {}
394-
{{- if .Values.controller.cache.enableShared }}
395-
- name: nginx-cache
396-
persistentVolumeClaim:
397-
claimName: {{ .Values.controller.cache.sharedPVCName }}
398-
{{- else }}
399394
- name: nginx-cache
400395
emptyDir: {}
401-
{{- end }}
402396
- name: nginx-lib
403397
emptyDir: {}
404398
- name: nginx-state
405399
emptyDir: {}
406400
- name: nginx-log
407401
emptyDir: {}
408-
{{- else if .Values.controller.cache.enableShared }}
409-
- name: nginx-cache
410-
persistentVolumeClaim:
411-
claimName: {{ .Values.controller.cache.sharedPVCName }}
412402
{{- end }}
413403
{{- if .Values.controller.appprotect.v5 }}
414404
{{ toYaml .Values.controller.appprotect.volumes }}
@@ -468,9 +458,6 @@ volumeMounts:
468458
name: nginx-state
469459
- mountPath: /var/log/nginx
470460
name: nginx-log
471-
{{- else if .Values.controller.cache.enableShared }}
472-
- mountPath: /var/cache/nginx
473-
name: nginx-cache
474461
{{- end }}
475462
{{- if .Values.controller.appprotect.v5 }}
476463
- name: app-protect-bd-config

charts/nginx-ingress/values.yaml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -168,16 +168,6 @@ controller:
168168
## See https://docs.nginx.com/nginx-ingress-controller/configuration/proxy-buffers-configuration/ for more details of which configuration options are affected
169169
directiveAutoAdjust: false
170170

171-
## Cache configuration options
172-
cache:
173-
## Enables shared cache across multiple pods using an external persistent volume
174-
## When enabled, the /var/cache/nginx directory will be mounted from a PVC instead of using emptyDir
175-
## User must create and configure a PVC with appropriate access mode
176-
enableShared: false
177-
178-
## The name of the PersistentVolumeClaim to use for shared cache, should match the name of the PVC created by the user
179-
sharedPVCName: "nginx-shared-cache"
180-
181171
## A list of custom ports to expose on the NGINX Ingress Controller pod. Follows the conventional Kubernetes yaml syntax for container ports.
182172
customPorts: []
183173

0 commit comments

Comments
 (0)