Skip to content

Commit

Permalink
Added new Kubernetes StatefulSet PVC Auto-Deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
sneaker-xc3 committed Aug 26, 2024
1 parent 128ca65 commit 301ab9f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
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

0 comments on commit 301ab9f

Please sign in to comment.