Add flux/apps.yaml

This commit is contained in:
SeanOMik 2023-04-02 13:46:01 -04:00
parent 514414c4b0
commit 01482cc6db
Signed by: SeanOMik
GPG Key ID: 568F326C7EB33ACB
1 changed files with 45 additions and 0 deletions

45
cluster/flux/apps.yaml Normal file
View File

@ -0,0 +1,45 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
name: cluster-apps
namespace: flux-system
spec:
interval: 30m
path: ./cluster/apps
prune: true
sourceRef:
kind: GitRepository
name: home-kubernetes
decryption:
provider: sops
secretRef:
name: sops-age
postBuild:
substituteFrom:
- kind: ConfigMap
name: cluster-settings
- kind: Secret
name: cluster-secrets
patches:
- patch: |-
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
name: not-used
spec:
decryption:
provider: sops
secretRef:
name: sops-gpg
postBuild:
substituteFrom:
- kind: ConfigMap
name: cluster-settings
- kind: Secret
name: cluster-secrets
target:
group: kustomize.toolkit.fluxcd.io
version: v1beta2
kind: Kustomization
labelSelector: substitution.flux.home.arpa/disabled notin (true)