Faberby FaberOps

Flux and Argo CD Sync Failure Signature

Matches Flux Kustomization and HelmRelease reconciliation failures and Argo CD Application sync or health failures.

Kind
Signature
Version
2.0.0
Tier
verified
Needs Faber
v2.0.0+
Digest prefix
sha256:f6db8675

Contract facts

Sources
3
kubernetes, loki, victorialogs
Log patterns
7
RE2, replayed in CI
Kubernetes matchers
3
CEL on live objects
Samples
5 and 3
must match and must not

Inspect it

Inspect the contract and RBAC delta

$ faberctl catalog inspect signatures/flux-argocd-sync \ --source oci://ghcr.io/faberops/catalog:v2

How it works

  • Sources: kubernetes, loki, victorialogs
  • Log patterns: 7 RE2 expressions, each proven by the samples.match and samples.noMatch lines that catalog CI replays
  • Ready queries: victorialogs, loki

Use from a Playbook

Reference the pack by name from a connector trigger:

YAML7 lines
triggers:
  - name: signature-hit
    connector:
      connectorType: loki
      signaturePack: flux-argocd-sync
      window: 10m
      minMatches: 3

Signatures only describe what to look for. They never grant a Playbook any permission or action.

What it matches

Must match

  • Kustomization/flux-system/apps Reconciliation failed after 2s, next try in 10m
  • HelmRelease/default/echo dry-run failed: spec.interval: Required value
  • Helm upgrade failed: upgrade retries exhausted
  • ComparisonError: failed to load target state
  • one or more objects failed to apply, reason: admission webhook denied the request

Must not match

  • Reconciliation finished in 1.2s, next run in 10m
  • Applied revision: main@sha1:4f2a
  • Sync operation to 4f2a succeeded

Signature source

signature.yamlFailureSignature42 lines
apiVersion: catalog.faberops.dev/v2
kind: FailureSignature
metadata:
  name: flux-argocd-sync
spec:
  description: Matches Flux Kustomization and HelmRelease reconciliation failures and Argo CD Application sync or health failures.
  sources:
    - kubernetes
    - loki
    - victorialogs
  logPatterns:
    - '(?i)Reconciliation failed'
    - '(?i)dry-run failed'
    - '(?i)(install|upgrade) retries exhausted'
    - '(?i)HelmChart ''[^'']+'' is not ready'
    - '(?i)ComparisonError'
    - '(?i)one or more objects failed to apply'
    - '(?i)health status[^\n]*Degraded'
  queries:
    victorialogs: '(app:kustomize-controller OR app:helm-controller OR app:argocd-application-controller) AND ("Reconciliation failed" OR "dry-run failed" OR "retries exhausted" OR "ComparisonError" OR "failed to apply")'
    loki: '{app=~"kustomize-controller|helm-controller|argocd-application-controller"} |~ "(?i)(Reconciliation failed|dry-run failed|retries exhausted|ComparisonError|failed to apply)"'
  kubernetes:
    - apiVersion: kustomize.toolkit.fluxcd.io/v1
      kind: Kustomization
      match: 'has(object.status.conditions) && object.status.conditions.exists(c, c.type == "Ready" && c.status == "False" && c.reason != "DependencyNotReady" && c.reason != "Progressing")'
    - apiVersion: helm.toolkit.fluxcd.io/v2
      kind: HelmRelease
      match: 'has(object.status.conditions) && object.status.conditions.exists(c, c.type == "Ready" && c.status == "False" && c.reason != "DependencyNotReady" && c.reason != "Progressing")'
    - apiVersion: argoproj.io/v1alpha1
      kind: Application
      match: 'has(object.status.health) && object.status.health.status == "Degraded" || (has(object.status.operationState) && object.status.operationState.phase in ["Failed", "Error"])'
  samples:
    match:
      - 'Kustomization/flux-system/apps Reconciliation failed after 2s, next try in 10m'
      - 'HelmRelease/default/echo dry-run failed: spec.interval: Required value'
      - 'Helm upgrade failed: upgrade retries exhausted'
      - 'ComparisonError: failed to load target state'
      - 'one or more objects failed to apply, reason: admission webhook denied the request'
    noMatch:
      - 'Reconciliation finished in 1.2s, next run in 10m'
      - 'Applied revision: main@sha1:4f2a'
      - 'Sync operation to 4f2a succeeded'
pack.yamlcatalog metadata11 lines
# Catalog metadata for signatures/flux-argocd-sync. Not applied to the cluster.
apiVersion: catalog.faberops.dev/v2
kind: CatalogPack
metadata:
  name: flux-argocd-sync
  category: signatures
  version: 2.0.0
spec:
  tier: verified
  minFaberVersion: v2.0.0
  digest: sha256:f6db86750bdc6935146b0f2452c7ef4d2ae125c8d7e81aae34f187b780ad6fd3

Signatures are catalog data. A Playbook references one by name in a connector trigger. It is never applied on its own.