applicationset-poc/forgejo-appset.yaml

45 lines
1.8 KiB
YAML
Raw Normal View History

2025-07-16 14:57:14 +02:00
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: forgejo
spec:
goTemplate: true
goTemplateOptions: ["missingkey=error"]
generators:
- list:
elements:
- cluster: edp-dev
template:
metadata:
name: '{{.cluster}}-guestbook'
spec:
project: default
syncPolicy:
automated:
selfHeal: true
syncOptions:
- CreateNamespace=true
retry:
limit: -1
destination:
name: in-cluster
namespace: gitea
sources:
- repoURL: https://edp.buildth.ing/DevFW-CICD/forgejo-helm.git
path: .
# first check out the desired version (example v9.0.0): https://code.forgejo.org/forgejo-helm/forgejo-helm/src/tag/v9.0.0/Chart.yaml
# (note that the chart version is not the same as the forgejo application version, which is specified in the above Chart.yaml file)
# then use the devops pipeline and select development, forgejo and the desired version (example v9.0.0):
# https://edp.buildth.ing/DevFW-CICD/devops-pipelines/actions?workflow=update-helm-depends.yaml&actor=0&status=0
# finally update the desired version here and include "-depends", it is created by the devops pipeline.
# why do we have an added "-depends" tag? it resolves rate limitings when downloading helm OCI dependencies
targetRevision: v12.0.0-depends
helm:
valueFiles:
- $values/forgejo/forgejo-server/values.yaml
- repoURL: https://edp.buildth.ing/DevFW/applicationset-poc.git
targetRevision: '{{.cluster}}'
ref: values
- repoURL: https://edp.buildth.ing/DevFW/applicationset-poc.git
targetRevision: '{{.cluster}}'
path: "forgejo/forgejo-server/manifests"