Class DeploymentResultBuildItem

java.lang.Object
io.quarkus.builder.item.BuildItem
io.quarkus.builder.item.SimpleBuildItem
io.quarkus.deployment.pkg.builditem.DeploymentResultBuildItem

public final class DeploymentResultBuildItem extends io.quarkus.builder.item.SimpleBuildItem
A build item representing the result of a Kubernetes or OpenShift deployment process.

This build item encapsulates the name and labels of the main resource created or updated during deployment. It is typically produced by deployment steps and can be consumed by other build steps that need information about the deployed resource.

The name usually refers to the primary resource (such as a Deployment, StatefulSet, or DeploymentConfig) that was applied to the cluster. The labels map contains metadata labels associated with this resource, which can be used for identification, filtering, or further processing.

  • Constructor Details

    • DeploymentResultBuildItem

      public DeploymentResultBuildItem(String name, Map<String,String> labels)
      Constructs a new DeploymentResultBuildItem.
      Parameters:
      name - the name of the main deployed resource
      labels - a map of labels associated with the deployed resource
  • Method Details

    • getName

      public String getName()
      Returns the name of the main deployed resource.
      Returns:
      the resource name
    • getLabels

      public Map<String,String> getLabels()
      Returns the labels associated with the deployed resource.
      Returns:
      a map of resource labels