compose/pkg/e2e/testdata/TestUnsupportedAttributesWarning
Guillaume Lours 8018a96fde feat(compose): warn on unsupported compose-file attributes
Compose silently ignored several spec-valid attributes it doesn't
honor outside Swarm mode: deploy.update_config, credential_spec,
ports[].mode: host, and others had no visible effect on a plain
`docker compose up`.

Detection is wired into compose-go's loader as a fail-closed
allowlist: every attribute path the schema declares, minus the
handful this runtime deliberately doesn't implement, plus a few
value-conditional checks for attributes only unsupported for one
specific value. A newly-specified attribute gets flagged
automatically, with no corresponding code change needed here.

Depends on an unreleased compose-go change; go.mod carries a
temporary replace to a fork branch until it's released.

Signed-off-by: Guillaume Lours <glours@users.noreply.github.com>
2026-09-09 16:32:04 +02:00
..
compose.yaml feat(compose): warn on unsupported compose-file attributes 2026-09-09 16:32:04 +02:00
creds.json feat(compose): warn on unsupported compose-file attributes 2026-09-09 16:32:04 +02:00
labels.env feat(compose): warn on unsupported compose-file attributes 2026-09-09 16:32:04 +02:00
myconfig.txt feat(compose): warn on unsupported compose-file attributes 2026-09-09 16:32:04 +02:00
mysecret.txt feat(compose): warn on unsupported compose-file attributes 2026-09-09 16:32:04 +02:00