From 8e78a1b90c135f96c8960412e52b82fac5f74da6 Mon Sep 17 00:00:00 2001 From: Not Darko <93942788+darkobas2@users.noreply.github.com> Date: Sat, 13 Apr 2024 20:47:35 +0200 Subject: [PATCH] fix: Neighbourhood is treated a string in bee (#204) --- charts/bee/templates/statefulset.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/bee/templates/statefulset.yaml b/charts/bee/templates/statefulset.yaml index d1456de..4d78bff 100644 --- a/charts/bee/templates/statefulset.yaml +++ b/charts/bee/templates/statefulset.yaml @@ -135,7 +135,7 @@ spec: NEIGH=$(wget --header="Accept: text/plain" https://api.swarmscan.io/v1/network/neighborhoods/suggestion -q -O -); printf 'swarmscan suggestion: %s\n' "${NEIGH}"; if [ ! -n "${NEIGH}" ] || [ $(expr match ${NEIGH} '[0,1]*$') == 0 ]; then echo 'bad neighborhood value ' "${NEIGH}" ; exit 1; fi; - printf 'target-neighborhood: %s\n' "${NEIGH}" >> /home/bee/.bee.yaml; + printf 'target-neighborhood: "%s"\n' "${NEIGH}" >> /home/bee/.bee.yaml; echo 'node initialization done'; volumeMounts: - name: config-file