Files
cozystack/packages
AuricX 5a0ee76edf fix(external-dns): stop enabling the service source on tenant instances
An ExternalDNS application crash-loops a minute after every start and
publishes no records:

  level=fatal msg="failed to sync *v1.Node: context deadline exceeded with timeout 1m0s"

The instance runs external-dns namespaced, so the vendored chart renders
a Role and leaves out the nodes rule, because a Role cannot grant a
cluster-scoped resource. The service source still starts a Node
informer, which never syncs without that grant.

Drop service from the hardcoded sources rather than grant nodes through
a ClusterRole. The source only publishes Services that carry the
external-dns hostname annotation, and tenants cannot annotate the
Services the platform renders in their namespace, so it published
nothing here. A ClusterRole would be cluster-scoped RBAC created by a
tenant application for a source with no use.

Tested with a new helm-unittest suite that pins the rendered sources
with and without gatewayAPI. Both cases fail while service is listed.

Closes: #4958
Assisted-by: LLM
Signed-off-by: AuricX <auricx.business@gmail.com>
2026-12-01 17:05:45 +02:00
..