Setup staging sync

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
Stefan Prodan 2024-04-10 01:13:17 +03:00
parent 85633b9f12
commit 928237a681
No known key found for this signature in database
GPG key ID: 3299AEB0E4085BAF
2 changed files with 2 additions and 3 deletions

View file

@ -11,8 +11,6 @@ set -o pipefail
repo_root=$(git rev-parse --show-toplevel)
mkdir -p "${repo_root}/bin"
CLUSTER_VERSION="${CLUSTER_VERSION:=v1.29.2}"
CLUSTER_HUB="flux-hub"
echo "INFO - Installing Flux in the hub cluster"
@ -22,6 +20,7 @@ flux --context "kind-${CLUSTER_HUB}" install \
flux --context "kind-${CLUSTER_HUB}" create source git flux-system \
--url=https://github.com/fluxcd/flux2-hub-spoke-example \
--ignore-paths="hub/flux-system/" \
--branch=main \
--interval=1m \
--username=git \
@ -29,7 +28,6 @@ flux --context "kind-${CLUSTER_HUB}" create source git flux-system \
flux --context "kind-${CLUSTER_HUB}" create kustomization flux-system \
--source=GitRepository/flux-system \
--ignore-paths="hub/flux-system/"
--path="./hub" \
--prune=true \
--interval=10m