Skip to content

Commit d404086

Browse files
authored
Merge pull request #159 from jacekn/pvc
Add support for controlling PVC retention policy in 2 charts
2 parents e3b842b + 8d066be commit d404086

File tree

6 files changed

+20
-2
lines changed

6 files changed

+20
-2
lines changed

charts/core/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v1
22
name: core
33
description: This chart will deploy Stellar Core node
4-
version: 0.6.1
4+
version: 0.7.0
55
appVersion: "26.0.1-3109.e78c97ed0.jammy"
66
maintainers:
77
- name: Stellar Development Foundation

charts/core/templates/core-sts.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ spec:
1515
replicas: {{ .Values.core.replicaCount }}
1616
podManagementPolicy: {{ .Values.core.podManagementPolicy }}
1717
serviceName: {{ template "common.fullname" . }}
18+
{{- if and .Values.core.persistence.enabled .Values.core.persistence.persistentVolumeClaimRetentionPolicy }}
19+
persistentVolumeClaimRetentionPolicy:
20+
{{- toYaml .Values.core.persistence.persistentVolumeClaimRetentionPolicy | nindent 4 }}
21+
{{- end }}
1822
selector:
1923
matchLabels:
2024
app: {{ template "common.fullname" . }}

charts/core/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ core:
104104
enabled: false
105105
storageClass: default
106106
size: 100G
107+
## Persistent volume claim retention policy for the StatefulSet.
108+
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention
109+
# persistentVolumeClaimRetentionPolicy:
110+
# whenDeleted: Retain
111+
# whenScaled: Retain
107112

108113
## Validators need to publish history archives. historyProxy section
109114
# will make the chart deplo reverse proxy nginx container

charts/soroban-rpc/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v1
22
name: soroban-rpc
3-
version: 0.4.1
3+
version: 0.5.0
44
appVersion: "26.0.0"
55
description: Stellar RPC Helm Chart. This chart will deploy Stellar RPC server
66
maintainers:

charts/soroban-rpc/templates/soroban-rpc-sts.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ spec:
2121
replicas: {{ .Values.sorobanRpc.replicaCount | default 2 | int }}
2222
podManagementPolicy: {{ .Values.sorobanRpc.podManagementPolicy }}
2323
serviceName: {{ template "common.fullname" . }}
24+
{{- if and .Values.sorobanRpc.persistence.enabled .Values.sorobanRpc.persistence.persistentVolumeClaimRetentionPolicy }}
25+
persistentVolumeClaimRetentionPolicy:
26+
{{- toYaml .Values.sorobanRpc.persistence.persistentVolumeClaimRetentionPolicy | nindent 4 }}
27+
{{- end }}
2428
selector:
2529
matchLabels:
2630
app: {{ template "common.fullname" . }}

charts/soroban-rpc/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ sorobanRpc:
9595
enabled: false
9696
storageClass: default
9797
size: 100G
98+
## Persistent volume claim retention policy for the StatefulSet.
99+
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention
100+
# persistentVolumeClaimRetentionPolicy:
101+
# whenDeleted: Retain
102+
# whenScaled: Retain
98103

99104
## Soroban RPC pods do not need to be initialized in a specific order
100105
podManagementPolicy: Parallel

0 commit comments

Comments
 (0)