mirror of
https://github.com/hanzocd/example-apps.git
synced 2026-10-30 20:50:47 +00:00
Manifests the docs and the end-to-end suite deploy against: plain, kustomize, helm and jsonnet variants, plus application sets and sync ordering.
30 lines
833 B
YAML
30 lines
833 B
YAML
{{- range .Values.applications }}
|
|
{{- $config := $.Values.config -}}
|
|
apiVersion: cd.hanzo.ai/v1alpha1
|
|
kind: Application
|
|
metadata:
|
|
name: {{ printf "example.%s" .name | quote }}
|
|
namespace: {{ .namespace | default "cd" }}
|
|
finalizers:
|
|
- resources-finalizer.cd.cd.hanzo.ai
|
|
spec:
|
|
destination:
|
|
namespace: {{ .destination.namespace | default .name | quote }}
|
|
server: {{ $config.spec.destination.server | quote }}
|
|
project: {{ .project | default "default" }}
|
|
source:
|
|
path: {{ .path | default .name | quote }}
|
|
repoURL: {{ $config.spec.source.repoURL }}
|
|
targetRevision: {{ $config.spec.source.targetRevision }}
|
|
{{- with .tool }}
|
|
{{- . | toYaml | nindent 4 }}
|
|
{{- end }}
|
|
syncPolicy:
|
|
syncOptions:
|
|
- CreateNamespace=true
|
|
automated:
|
|
prune: true
|
|
selfHeal: true
|
|
---
|
|
{{ end -}}
|