Package io.quarkus.kubernetes.spi
Class KubernetesDeploymentTargetBuildItem
java.lang.Object
io.quarkus.builder.item.BuildItem
io.quarkus.builder.item.MultiBuildItem
io.quarkus.kubernetes.spi.KubernetesDeploymentTargetBuildItem
- All Implemented Interfaces:
Comparable<KubernetesDeploymentTargetBuildItem>
public final class KubernetesDeploymentTargetBuildItem
extends io.quarkus.builder.item.MultiBuildItem
implements Comparable<KubernetesDeploymentTargetBuildItem>
Used to control which Kubernetes targets have their files generated and which get deployed
Since these can be generated by various locations, code that needs the "final"
set of items, should use the
mergeList method to get a new list
with merged items.
Furthermore, if priorities need to be taken into account, the merged list should
also be sorted-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionKubernetesDeploymentTargetBuildItem(String name, String kind, String group, String version, boolean enabled, DeployStrategy deployStrategy) KubernetesDeploymentTargetBuildItem(String name, String kind, String group, String version, int priority, boolean enabled, DeployStrategy deployStrategy) KubernetesDeploymentTargetBuildItem(String name, String kind, String group, String version, DeployStrategy deployStrategy) -
Method Summary
-
Field Details
-
VANILLA_KUBERNETES_PRIORITY
public static final int VANILLA_KUBERNETES_PRIORITY- See Also:
-
DEFAULT_PRIORITY
public static final int DEFAULT_PRIORITY- See Also:
-
-
Constructor Details
-
KubernetesDeploymentTargetBuildItem
public KubernetesDeploymentTargetBuildItem(String name, String kind, String group, String version, DeployStrategy deployStrategy) -
KubernetesDeploymentTargetBuildItem
public KubernetesDeploymentTargetBuildItem(String name, String kind, String group, String version, boolean enabled, DeployStrategy deployStrategy) -
KubernetesDeploymentTargetBuildItem
public KubernetesDeploymentTargetBuildItem(String name, String kind, String group, String version, int priority, boolean enabled, DeployStrategy deployStrategy)
-
-
Method Details
-
getGroup
-
getVersion
-
getKind
-
getName
-
getPriority
public int getPriority() -
isEnabled
public boolean isEnabled() -
getDeployStrategy
-
nameAndKindMatch
-
nameAndKindMatchButNotEquals
-
nameToKindEntry
-
equals
-
hashCode
public int hashCode() -
mergeList
public static List<KubernetesDeploymentTargetBuildItem> mergeList(List<KubernetesDeploymentTargetBuildItem> input) Return a new list containing from the input where entries that matchnameandkindas merged together based onmerge -
compareTo
- Specified by:
compareToin interfaceComparable<KubernetesDeploymentTargetBuildItem>
-