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 Summary
ConstructorsConstructorDescriptionDeploymentResultBuildItem(String name, Map<String, String> labels) Constructs a newDeploymentResultBuildItem. -
Method Summary
-
Constructor Details
-
DeploymentResultBuildItem
Constructs a newDeploymentResultBuildItem.- Parameters:
name- the name of the main deployed resourcelabels- a map of labels associated with the deployed resource
-
-
Method Details
-
getName
Returns the name of the main deployed resource.- Returns:
- the resource name
-
getLabels
Returns the labels associated with the deployed resource.- Returns:
- a map of resource labels
-