mirror of
https://github.com/fluxcd/flux2-hub-spoke-example.git
synced 2025-07-27 15:53:19 +00:00
Add tenants and releases sync
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
parent
928237a681
commit
e9b6d5192f
2 changed files with 28 additions and 2 deletions
|
@ -6,7 +6,7 @@ metadata:
|
||||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
metadata:
|
metadata:
|
||||||
name: cluster-sync
|
name: tenants-sync
|
||||||
namespace: staging
|
namespace: staging
|
||||||
spec:
|
spec:
|
||||||
interval: 1h
|
interval: 1h
|
||||||
|
@ -14,7 +14,7 @@ spec:
|
||||||
timeout: 5m
|
timeout: 5m
|
||||||
prune: true
|
prune: true
|
||||||
wait: true
|
wait: true
|
||||||
path: ./clusters/staging
|
path: ./clusters/staging/tenants
|
||||||
sourceRef:
|
sourceRef:
|
||||||
kind: GitRepository
|
kind: GitRepository
|
||||||
name: flux-system
|
name: flux-system
|
||||||
|
@ -22,3 +22,29 @@ spec:
|
||||||
kubeConfig:
|
kubeConfig:
|
||||||
secretRef:
|
secretRef:
|
||||||
name: cluster-kubeconfig
|
name: cluster-kubeconfig
|
||||||
|
---
|
||||||
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||||
|
kind: Kustomization
|
||||||
|
metadata:
|
||||||
|
name: releases-sync
|
||||||
|
namespace: staging
|
||||||
|
spec:
|
||||||
|
interval: 1h
|
||||||
|
retryInterval: 3m
|
||||||
|
timeout: 5m
|
||||||
|
prune: true
|
||||||
|
wait: true
|
||||||
|
path: ./clusters/staging/releases
|
||||||
|
sourceRef:
|
||||||
|
kind: GitRepository
|
||||||
|
name: flux-system
|
||||||
|
namespace: flux-system
|
||||||
|
patches:
|
||||||
|
- target:
|
||||||
|
kind: HelmRelease
|
||||||
|
patch: |
|
||||||
|
- op: add
|
||||||
|
path: /spec/kubeconfig
|
||||||
|
value:
|
||||||
|
secretRef:
|
||||||
|
name: cluster-kubeconfig
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue