Interface ServiceBlacklistConfig
@ConfigMapping(prefix="service")
public interface ServiceBlacklistConfig
Configuration mapping for the container blacklist.
Blacklisted containers are protected from lifecycle operations (stop, restart, update).
Entries may refer to a container identifier, a container name, or an image name.
The blacklist is sourced from the service.blacklist configuration property.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the set of blacklisted identifiers, names, or image references.default booleanisBlacklisted(String containerId, String containerName, String imageName) Determines whether a container is blacklisted by checking its identifier, name, and image name against the configured blacklist entries.
-
Method Details
-
blacklist
-
isBlacklisted
Determines whether a container is blacklisted by checking its identifier, name, and image name against the configured blacklist entries.- Parameters:
containerId- the Docker container identifiercontainerName- the container nameimageName- the image reference (including tag)- Returns:
trueif any of the provided values appear in the blacklist
-