Files
k8s-manifests/argocd/application-n8n.yaml
T
chemavxandClaude Opus 5 9d42dac312 argocd: excluir los exports de workflow de la app n8n
Una Application de tipo directorio lee *.yaml, *.yml y *.json indistintamente,
asi que la copia del workflow que acabo de meter en n8n/ entraba como si fuera
un manifiesto y dejaba la app en ComparisonError: "Object 'Kind' is missing".

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-30 20:20:18 +00:00

32 lines
1014 B
YAML

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: n8n
namespace: argocd
annotations:
notifications.argoproj.io/subscribe.on-sync-failed.telegram: "5138407666"
notifications.argoproj.io/subscribe.on-health-degraded.telegram: "5138407666"
spec:
destination:
namespace: n8n
server: https://kubernetes.default.svc
project: default
source:
path: n8n
repoURL: https://git.chemavx.xyz/chemavx/k8s-manifests
targetRevision: main
directory:
# En n8n/ conviven manifiestos y ficheros de referencia. Una app de tipo
# directorio se traga *.yaml, *.yml y *.json por igual, asi que el export
# del workflow entraba como manifiesto y dejaba la Application en
# ComparisonError ("Object 'Kind' is missing"). Lo que no sea un objeto de
# Kubernetes va aqui.
exclude: "workflow-*.json"
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
- RespectIgnoreDifferences=true