From bc98a9a882bfca7aa0aeb9377fd559d82d75d3c9 Mon Sep 17 00:00:00 2001
From: bakhtin
Date: Fri, 7 Jul 2023 16:07:52 +0100
Subject: [PATCH] Fix wget
Signed-off-by: bakhtin
---
charts/node/Chart.yaml | 2 +-
charts/node/README.md | 2 +-
charts/node/templates/statefulset.yaml | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/charts/node/Chart.yaml b/charts/node/Chart.yaml
index 5121f479..1b270688 100644
--- a/charts/node/Chart.yaml
+++ b/charts/node/Chart.yaml
@@ -2,7 +2,7 @@ apiVersion: v2
name: node
description: A Helm chart to deploy Substrate/Polkadot nodes
type: application
-version: 5.1.2
+version: 5.1.3
maintainers:
- name: Parity
url: https://github.com/paritytech/helm-charts
diff --git a/charts/node/README.md b/charts/node/README.md
index ccec50a9..b4a825da 100644
--- a/charts/node/README.md
+++ b/charts/node/README.md
@@ -18,7 +18,7 @@ This is intended behaviour. Make sure to run `git add -A` once again to stage ch
# Substrate/Polkadot node helm chart
-![Version: 5.1.2](https://img.shields.io/badge/Version-5.1.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
+![Version: 5.1.3](https://img.shields.io/badge/Version-5.1.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
## Maintainers
diff --git a/charts/node/templates/statefulset.yaml b/charts/node/templates/statefulset.yaml
index 92d269ea..64db8f7d 100644
--- a/charts/node/templates/statefulset.yaml
+++ b/charts/node/templates/statefulset.yaml
@@ -268,7 +268,7 @@ spec:
- |
set -eu -o pipefail {{ if .Values.initContainers.downloadRuntime.debug }}-x{{ end }}
mkdir -p {{ .Values.node.wasmRuntimeOverridesPath }}
- wget -nc -P {{ .Values.node.wasmRuntimeOverridesPath }} {{ .Values.node.wasmRuntimeUrl }}
+ test -f "{{ .Values.node.wasmRuntimeOverridesPath }}/$(basename {{ .Values.node.wasmRuntimeUrl }})" || wget -P {{ .Values.node.wasmRuntimeOverridesPath }} {{ .Values.node.wasmRuntimeUrl }}
resources:
{{- toYaml .Values.initContainers.downloadRuntime.resources | nindent 12 }}
volumeMounts: