Skip to content

Commit 92ad90f

Browse files
committed
[apigateway] add volumeClaimDeletePolicy support for Elasticsearch
1 parent 9281830 commit 92ad90f

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

apigateway/helm/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ type: application
3333
# This is the chart version. This version number should be incremented each time you make changes
3434
# to the chart and its templates, including the app version.
3535
# Versions are expected to follow Semantic Versioning (https://semver.org/)
36-
version: 3.12.1
36+
version: 3.13.0
3737

3838
# This is the version number of the application being deployed. This version number should be
3939
# incremented each time you make changes to the application. Versions are not expected to

apigateway/helm/templates/elasticsearch.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ spec:
3636
{{- if .Values.elasticsearch.image }}
3737
image: {{ .Values.elasticsearch.image }}
3838
{{- end }}
39+
{{- if .Values.elasticsearch.volumeClaimDeletePolicy }}
40+
volumeClaimDeletePolicy: { { .Values.elasticsearch.volumeClaimDeletePolicy } }
41+
{{- end }}
3942
http:
4043
tls:
4144
{{- if .Values.elasticsearch.tlsEnabled }}

apigateway/helm/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -729,6 +729,10 @@ elasticsearch:
729729
# -- Set Pods' Priority Class Name
730730
priorityClassName: ""
731731

732+
# -- Volume claim delete policy. Controls when ECK deletes PVCs.
733+
# By default the value is DeleteOnScaledownAndClusterDeletion
734+
volumeClaimDeletePolicy: ""
735+
732736
# -- Node sets. See official ElasticSearch documentation at:
733737
# https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-orchestration.html
734738
# if you specify node sets here the defaultNodeSet will not be used.

0 commit comments

Comments
 (0)