31 lines
863 B
YAML
31 lines
863 B
YAML
apiVersion: argoproj.io/v1alpha1
|
|
kind: Application
|
|
metadata:
|
|
name: gitea-runners
|
|
namespace: argocd
|
|
finalizers:
|
|
- resources-finalizer.argocd.argoproj.io
|
|
spec:
|
|
destination:
|
|
namespace: {{ $.Values.spec.destination.namespace }}
|
|
server: {{ $.Values.spec.destination.server }}
|
|
project: default
|
|
source:
|
|
path: .
|
|
repoURL: https://git.hnrx.net/k8s/gitea_runners.git
|
|
targetRevision: main
|
|
kustomize:
|
|
namespace: {{ $.Values.spec.destination.namespace }}
|
|
patches:
|
|
- target:
|
|
kind: PhaseSecret
|
|
name: gitea-runner-secret
|
|
patch: |-
|
|
- op: replace
|
|
path: /spec/managedSecretReferences/0/secretNamespace
|
|
value: "{{ $.Values.spec.destination.namespace }}"
|
|
syncPolicy:
|
|
automated:
|
|
selfHeal: true
|
|
syncOptions:
|
|
- CreateNamespace=true |