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.
35 lines
856 B
YAML
35 lines
856 B
YAML
apiVersion: argoproj.io/v1alpha1
|
|
kind: ApplicationSet
|
|
metadata:
|
|
name: apps-preview
|
|
namespace: argocd
|
|
spec:
|
|
goTemplate: true
|
|
goTemplateOptions: ["missingkey=error"]
|
|
generators:
|
|
- pullRequest:
|
|
github:
|
|
owner: lazorgurl
|
|
repo: homelab
|
|
requeueAfterSeconds: 60
|
|
template:
|
|
metadata:
|
|
name: "preview-{{ .number }}"
|
|
spec:
|
|
project: default
|
|
source:
|
|
repoURL: git@github.com:lazorgurl/homelab.git
|
|
targetRevision: "{{ .branch }}"
|
|
path: apps/*/k8s/overlays/preview
|
|
kustomize:
|
|
nameSuffix: "-pr{{ .number }}"
|
|
destination:
|
|
server: https://kubernetes.default.svc
|
|
namespace: "preview-{{ .number }}"
|
|
syncPolicy:
|
|
automated:
|
|
prune: true
|
|
selfHeal: true
|
|
syncOptions:
|
|
- CreateNamespace=true
|