Skip to content

Immutable gateway controller fails to start when artifacts dir is a Kubernetes ConfigMap mount #2719

Description

@renuka-fernando

Description

When the immutable gateway artifacts directory is backed by a Kubernetes ConfigMap volume mount, the controller fails to start with a conflict error.

Kubernetes ConfigMap mounts create an internal directory structure with ..-prefixed entries:

<artifacts-dir>/
  ..2026_07_13_10_00_00.123456/   ← real timestamped revision dir
  ..data -> ..2026_07_13_.../     ← symlink to current revision
  petstore.yaml -> ..data/petstore.yaml   ← per-key symlink

The artifact walker (filepath.WalkDir) descends into both the timestamped directory and the ..data symlink, processing each artifact file twice. The second load conflicts with the first, causing an error that prevents the controller from starting.

Expected behavior: each artifact is loaded exactly once, regardless of whether the directory is a plain filesystem path or a Kubernetes ConfigMap mount.

Version

No response

Related Issue

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area/GatewayAny issues related to API deployment in gateway, routing etc.Type/Bug

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions