Allow for predicate based checking of image names

Update `DockerComposeConnectionDetailsFactory` to accept a `Predicate`
based check to determine if the source should be accepted.

The existing name based checks have also been improved to allow names
outside of official docker images. The `ImageReference` and `ImageName`
classes have been mainly copied from
`org.springframework.boot.buildpack.platform.docker.type`.

Closes gh-35154
This commit is contained in:
Phillip Webb
2023-04-24 16:05:03 -07:00
parent 19221f00f3
commit 0f032c290a
12 changed files with 802 additions and 85 deletions

View File

@@ -56,7 +56,7 @@ The following service connections are currently supported:
| Containers named "redis"
| `ZipkinConnectionDetails`
| Containers named "zipkin".
| Containers named "openzipkin/zipkin".
|===