consolidate repository files

This commit is contained in:
2024-06-10 01:02:21 +10:00
parent a74f5dcd09
commit 0107b7cba0
3 changed files with 47 additions and 2 deletions

View File

@@ -1,7 +1,32 @@
apiVersion: source.toolkit.fluxcd.io/v1
kind: GitRepository
metadata:
name: home-cluster-ops
namespace: flux-system
spec:
interval: 60m
url: https://github.com/3dwardch3ng/home-cluster-ops
ref:
branch: main
---
apiVersion: source.toolkit.fluxcd.io/v1
kind: GitRepository
metadata:
name: home-cluster-ops-secrets
namespace: flux-system
spec:
interval: 10m0s
ref:
branch: main
secretRef:
name: flux-system
timeout: 60s
url: https://github.com/3dwardch3ng/home-cluster-ops-secrets.git
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: repositories
name: home-cluster-ops-repo
namespace: kube-system
spec:
interval: 1h
@@ -10,4 +35,24 @@ spec:
sourceRef:
kind: GitRepository
namespace: flux-system
name: home-cluster-ops
name: home-cluster-ops
ignore: |
# exclude all
/*
# include flux directories
!/kubernetes/rpi5-cluster/infrastructure
!/kubernetes/rpi5-cluster/templates
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: home-cluster-ops-secrets-repo
namespace: kube-system
spec:
interval: 1h
path: ./
prune: true
sourceRef:
kind: GitRepository
namespace: flux-system
name: home-cluster-ops-secrets