Gitea needs to be deployed before ArgoCD can read from it. Keep GitHub repoURLs so ArgoCD can discover and deploy the new gitea-pg, gitea, and gitea-runner directories. Switch to Gitea repoURLs after Gitea is running and repo is pushed.
33 lines
802 B
YAML
33 lines
802 B
YAML
apiVersion: argoproj.io/v1alpha1
|
|
kind: ApplicationSet
|
|
metadata:
|
|
name: platform
|
|
namespace: argocd
|
|
spec:
|
|
goTemplate: true
|
|
goTemplateOptions: ["missingkey=error"]
|
|
generators:
|
|
- git:
|
|
repoURL: git@github.com:lazorgurl/homelab.git
|
|
revision: main
|
|
directories:
|
|
- path: infra/kubernetes/platform/*
|
|
template:
|
|
metadata:
|
|
name: "platform-{{ .path.basename }}"
|
|
spec:
|
|
project: default
|
|
source:
|
|
repoURL: git@github.com:lazorgurl/homelab.git
|
|
targetRevision: main
|
|
path: "{{ .path.path }}"
|
|
destination:
|
|
server: https://kubernetes.default.svc
|
|
namespace: platform
|
|
syncPolicy:
|
|
automated:
|
|
prune: true
|
|
selfHeal: true
|
|
syncOptions:
|
|
- CreateNamespace=true
|