Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added new Kubernetes StatefulSet PVC Auto-Deletion #441

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions stable/hazelcast-enterprise/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -256,3 +256,12 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- if .Values.persistence.volumeClaimRetentionPolicy }}
persistentVolumeClaimRetentionPolicy:
{{- if .Values.persistence.volumeClaimRetentionPolicy.whenDeleted }}
whenDeleted: {{ .Values.persistence.volumeClaimRetentionPolicy.whenDeleted }}
{{- end }}
{{- if .Values.persistence.volumeClaimRetentionPolicy.whenScaled }}
whenScaled: {{ .Values.persistence.volumeClaimRetentionPolicy.whenScaled }}
{{- end }}
{{- end }}
12 changes: 12 additions & 0 deletions stable/hazelcast-enterprise/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,18 @@ persistence:
# hostPath is the path of the node machine directory that is used for persistent storage
# if defined, it's used instead of Persistent Volume Claim
# hostPath:
# volumeClaimRetentionPolicy controls if and how PVCs are deleted during the lifecycle of a StatefulSet
# There are two retention policies to be set:
# whenDeleted - configures the volume retention behavior that applies when the StatefulSet is deleted
# and
# whenScaled - configures the volume retention behavior that applies when the replica count of the StatefulSet
# is reduced; for example, when scaling down the set.
#
# Values can be either Retain which is the default or Delete
#
# volumeClaimRetentionPolicy:
# whenDeleted: Retain
# whenScaled: Retain

# Hazelcast Jet Engine
jet:
Expand Down