Files
zeekay cded7148d1 Example applications for Hanzo CD
Manifests the docs and the end-to-end suite deploy against: plain, kustomize,
helm and jsonnet variants, plus application sets and sync ordering.
2026-09-04 23:49:48 -07:00

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 -}}