From 68fe7866562be27c18f81d61f977b886934e0be9 Mon Sep 17 00:00:00 2001 From: devantler Date: Tue, 25 Jul 2023 12:11:22 +0200 Subject: [PATCH] fix --- .../e2e-setup-cluster-reconciliation.sh | 26 +++++++++---------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/.github/scripts/e2e-setup-cluster-reconciliation.sh b/.github/scripts/e2e-setup-cluster-reconciliation.sh index 6acf3cee..ae9d70e7 100755 --- a/.github/scripts/e2e-setup-cluster-reconciliation.sh +++ b/.github/scripts/e2e-setup-cluster-reconciliation.sh @@ -1,22 +1,20 @@ -if [ -z "$1" ] - then - echo "Error: 'repository_url' argument not set" - exit 1 +if [ -z "$1" ]; then + echo "Error: 'repository_url' argument not set" + exit 1 fi -if [ -z "$2" ] - then - echo "Error: 'branch_name' argument not set" - exit 1 +if [ -z "$2" ]; then + echo "Error: 'branch_name' argument not set" + exit 1 fi repository_url=$1 branch_name=$2 flux create source git flux-system \ - --url=$repository_url \ - --branch=$branch_name \ - --ignore-paths="k8s/clusters/**/flux-system/" \ - flux create kustomization flux-system \ - --source=flux-system \ - --path=./k8s/clusters/development + --url=$repository_url \ + --branch=$branch_name \ + --ignore-paths="k8s/clusters/**/flux-system/" +flux create kustomization flux-system \ + --source=flux-system \ + --path=./k8s/clusters/development