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>
32 lines
1014 B
YAML
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
|