42 lines
787 B
YAML
42 lines
787 B
YAML
---
|
|
apiVersion: source.toolkit.fluxcd.io/v1
|
|
kind: GitRepository
|
|
metadata:
|
|
name: valinor
|
|
namespace: flux-system
|
|
spec:
|
|
interval: 30m
|
|
ref:
|
|
branch: main
|
|
url: ssh://github.com/jahanson/valinor
|
|
ignore: |
|
|
# exclude all
|
|
/*
|
|
# include gitops dirs
|
|
!/kubernetes
|
|
---
|
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
kind: Kustomization
|
|
metadata:
|
|
name: cluster
|
|
namespace: flux-system
|
|
spec:
|
|
interval: 30m
|
|
path: ./kubernetes/flux
|
|
prune: true
|
|
wait: false
|
|
sourceRef:
|
|
kind: GitRepository
|
|
name: valinor
|
|
decryption:
|
|
provider: sops
|
|
secretRef:
|
|
name: sops-age
|
|
postBuild:
|
|
substituteFrom:
|
|
- kind: ConfigMap
|
|
name: cluster-settings
|
|
optional: false
|
|
- kind: Secret
|
|
name: cluster-secrets
|
|
optional: false
|