Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
devantler committed Jul 25, 2023
1 parent aadc0e4 commit 68fe786
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions .github/scripts/e2e-setup-cluster-reconciliation.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 68fe786

Please sign in to comment.