From a33a17883cb46cb3572eff58d8284f4b6568788a Mon Sep 17 00:00:00 2001
From: bakhtin
Date: Mon, 3 Jul 2023 16:25:30 +0100
Subject: [PATCH] Fix pipefail option
Signed-off-by: bakhtin
---
charts/node/Chart.yaml | 2 +-
charts/node/README.md | 2 +-
charts/node/templates/statefulset.yaml | 8 ++++----
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/charts/node/Chart.yaml b/charts/node/Chart.yaml
index 8156fc91..ea86f877 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.0.0
+version: 5.0.1
maintainers:
- name: Parity
url: https://github.com/paritytech/helm-charts
diff --git a/charts/node/README.md b/charts/node/README.md
index f8c1a805..2309fdc7 100644
--- a/charts/node/README.md
+++ b/charts/node/README.md
@@ -13,7 +13,7 @@ This is intended behaviour. Make sure to run `git add -A` once again to stage ch
# Substrate/Polkadot node helm chart
-![Version: 5.0.0](https://img.shields.io/badge/Version-5.0.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
+![Version: 5.0.1](https://img.shields.io/badge/Version-5.0.1-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 1bdcc97c..32e0641e 100644
--- a/charts/node/templates/statefulset.yaml
+++ b/charts/node/templates/statefulset.yaml
@@ -278,7 +278,7 @@ spec:
args:
- -c
- |
- set -eu -o pipefail {{ if .Values.initContainers.persistGeneratedNodeKey.debug }}-x{{ end }}
+ set -eu {{ if .Values.initContainers.persistGeneratedNodeKey.debug }}-x{{ end }}
NODE_KEY_PATH="/keystore/node-key"
if [ -f "${NODE_KEY_PATH}" ]; then
echo "Node key already exists, skipping node key generation"
@@ -302,7 +302,7 @@ spec:
args:
- -c
- |
- set -eu -o pipefail {{ if .Values.initContainers.injectKeys.debug }}-x{{ end }}
+ set -eu {{ if .Values.initContainers.injectKeys.debug }}-x{{ end }}
{{- range $keys := .Values.node.keys }}
if [ ! -f /var/run/secrets/{{ .type }}/type ]; then
echo "Error: File /var/run/secrets/{{ .type }}/type does not exist"
@@ -339,7 +339,7 @@ spec:
args:
- -c
- |
- set -eu -o pipefail {{ if .Values.initContainers.injectKeys.debug }}-x{{ end }}
+ set -eu {{ if .Values.initContainers.injectKeys.debug }}-x{{ end }}
{{- range $keys := .Values.node.existingSecrets.keys }}
if [ ! -f /var/run/secrets/{{ $keys }}/type ]; then
echo "Error: File /var/run/secrets/{{ $keys }}/type does not exist"
@@ -372,7 +372,7 @@ spec:
args:
- -c
- |
- set -eu -o pipefail {{ if .Values.initContainers.injectKeys.debug }}-x{{ end }}
+ set -eu {{ if .Values.initContainers.injectKeys.debug }}-x{{ end }}
{{- if .Values.node.vault.nodeKey }}
NODE_KEY_PATH="/vault/secrets/{{ .Values.node.vault.nodeKey.name }}{{ if .Values.node.vault.nodeKey.vaultKeyAppendPodIndex }}-${HOSTNAME##*-}{{ end }}"
if [ ! -f ${NODE_KEY_PATH} ]; then