From 075f8ba4bba3b5aa85e4b70e2fc236312c129ed2 Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Tue, 3 Dec 2024 14:00:46 +0100 Subject: [PATCH] adjust update-helm script to enable readiness check Signed-off-by: Simon L. --- nextcloud-aio-helm-chart/update-helm.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/nextcloud-aio-helm-chart/update-helm.sh b/nextcloud-aio-helm-chart/update-helm.sh index a8719b1b1e0..361a6c51865 100755 --- a/nextcloud-aio-helm-chart/update-helm.sh +++ b/nextcloud-aio-helm-chart/update-helm.sh @@ -25,6 +25,13 @@ set -ex cd manual-install cp latest.yml latest.yml.backup +# Additional config +cat << EOL > /tmp/labels + labels: + kompose.service.healthcheck.readiness.disable: false +EOL +# shellcheck disable=SC1083 +sed -i "/image:.*/r /tmp/labels" latest.yml sed -i -E '/^( *- )(NET_RAW|SYS_NICE|MKNOD|SYS_ADMIN)$/!s/( *- )([A-Z_]+)$/\1\2=${\2}/' latest.yml cp sample.conf /tmp/ sed -i 's|^|export |' /tmp/sample.conf @@ -197,6 +204,10 @@ find ./ -name '*deployment.yaml' -exec sed -i "s|manual-install-nextcloud-aio|ne # shellcheck disable=SC1083 find ./ -name '*deployment.yaml' -exec sed -i "/medium: Memory/d" \{} \; # shellcheck disable=SC1083 +find ./ -name '*.yaml' -exec sed -i "/kompose.service.healthcheck.readiness.disable/d" \{} \; +# shellcheck disable=SC1083 +find ./ -name '*.yaml' -exec sed -i "/kompose.cmd/d" \{} \; +# shellcheck disable=SC1083 find ./ -name '*deployment.yaml' -exec sed -i "s|emptyDir:|emptyDir: \{\}|" \{} \; # shellcheck disable=SC1083 find ./ -name '*deployment.yaml' -exec sed -i "/hostPort:/d" \{} \;