feat(secrets): Implement auto secret synchronization

This commit is contained in:
Tanguy Herbron 2024-01-14 02:05:30 +01:00
parent 39b680f3cf
commit 3be7d9715f
2 changed files with 25 additions and 0 deletions

@ -3,6 +3,7 @@ kind: Kustomization
resources:
- namespace.yaml
- secrets.yaml
- database.yaml
- service.yaml
- servicemonitor.yaml

24
manifests/secrets.yaml Normal file

@ -0,0 +1,24 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: gitea-secrets
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: default
source:
repoURL: https://git.halis.io/athens-school/k3s-secrets.git
targetRevision: dev
path: gitea
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=false
- ApplyOutOfSyncOnly=true
- PruneLast=true
destination:
server: https://kubernetes.default.svc
namespace: gitea