mirror of
https://github.com/fluxcd/flux2-hub-spoke-example.git
synced 2025-07-27 15:53:19 +00:00
Setup staging sync
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
parent
85633b9f12
commit
928237a681
2 changed files with 2 additions and 3 deletions
|
@ -18,6 +18,7 @@ spec:
|
|||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: flux-system
|
||||
namespace: flux-system
|
||||
kubeConfig:
|
||||
secretRef:
|
||||
name: cluster-kubeconfig
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue