---
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/gitrepository-source-v1.json
apiVersion: source.toolkit.fluxcd.io/v1
kind: GitRepository
metadata:
name: valinor
namespace: flux-system
spec:
interval: 30m
ref:
branch: main
secretRef:
name: git-deploy-key
url: ssh://git.hsn.dev/jahanson/valinor
ignore: |
# exclude all
/*
# include gitops dirs
!/kubernetes
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/kustomization-kustomize-v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
name: cluster
path: ./kubernetes/flux
prune: true
wait: false
sourceRef:
decryption:
provider: sops
name: sops-age
postBuild:
substituteFrom:
- kind: ConfigMap
name: cluster-settings
optional: false
- kind: Secret
name: cluster-secrets