Skip to content

Commit

Permalink
remove --unsafe-pruning flag which was deprecated in paritytech/subst…
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreBesson committed Jun 13, 2022
1 parent b775da1 commit d76d4cf
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions charts/node/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,9 @@ chain: {{ .Values.node.chain }}
role: {{ .Values.node.role }}
{{- if or .Values.node.pruning ( not ( kindIs "invalid" .Values.node.pruning ) ) }}
{{- if ge ( int .Values.node.pruning ) 1 }}
pruning: {{ ( int .Values.node.pruning ) }}
unsafe-pruning: true
pruning: {{ .Values.node.pruning | quote }}
{{- else if and ( not ( kindIs "invalid" .Values.node.pruning ) ) ( eq 0 ( int .Values.node.pruning ) ) }}
pruning: archive
unsafe-pruning: false
{{- end }}
{{- end }}
{{- if .Values.node.database }}
Expand Down
1 change: 0 additions & 1 deletion charts/node/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,6 @@ spec:
--database={{ .Values.node.database }} \
{{- end }}
{{- if ge ( int .Values.node.pruning ) 1 }}
--unsafe-pruning \
--pruning={{ .Values.node.pruning }} \
{{- else if and ( not ( kindIs "invalid" .Values.node.pruning ) ) ( eq 0 ( int .Values.node.pruning ) ) }}
--pruning=archive \
Expand Down
2 changes: 1 addition & 1 deletion charts/node/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ node:
# vaultKeyAppendPodIndex: false
persistGeneratedNodeKey: false
#customNodeKey: ""
# pruning: 1000
#pruning: 1000
resources: {}
serviceMonitor:
enabled: false
Expand Down

0 comments on commit d76d4cf

Please sign in to comment.