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 Type
    Method
    Description
    Returns the set of blacklisted identifiers, names, or image references.
    default boolean
    isBlacklisted(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

      @WithName("blacklist") @WithDefault("") Optional<Set<String>> blacklist()
      Returns the set of blacklisted identifiers, names, or image references.
      Returns:
      an optional set of blacklisted values, empty if none are configured
    • isBlacklisted

      default boolean isBlacklisted(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.
      Parameters:
      containerId - the Docker container identifier
      containerName - the container name
      imageName - the image reference (including tag)
      Returns:
      true if any of the provided values appear in the blacklist