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 themergeListmethod 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
Fields Modifier and Type Field Description static intDEFAULT_PRIORITYstatic intVANILLA_KUBERNETES_PRIORITY
-
Constructor Summary
Constructors Constructor Description KubernetesDeploymentTargetBuildItem(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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(KubernetesDeploymentTargetBuildItem o)booleanequals(Object o)DeployStrategygetDeployStrategy()StringgetGroup()StringgetKind()StringgetName()intgetPriority()StringgetVersion()inthashCode()booleanisEnabled()static List<KubernetesDeploymentTargetBuildItem>mergeList(List<KubernetesDeploymentTargetBuildItem> input)Return a new list containing from the input where entries that matchnameandkindas merged together based onmergebooleannameAndKindMatch(KubernetesDeploymentTargetBuildItem other)booleannameAndKindMatchButNotEquals(KubernetesDeploymentTargetBuildItem other)Map.Entry<String,String>nameToKindEntry()
-
-
-
Field Detail
-
VANILLA_KUBERNETES_PRIORITY
public static final int VANILLA_KUBERNETES_PRIORITY
- See Also:
- Constant Field Values
-
DEFAULT_PRIORITY
public static final int DEFAULT_PRIORITY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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 Detail
-
getGroup
public String getGroup()
-
getVersion
public String getVersion()
-
getKind
public String getKind()
-
getName
public String getName()
-
getPriority
public int getPriority()
-
isEnabled
public boolean isEnabled()
-
getDeployStrategy
public DeployStrategy getDeployStrategy()
-
nameAndKindMatch
public boolean nameAndKindMatch(KubernetesDeploymentTargetBuildItem other)
-
nameAndKindMatchButNotEquals
public boolean nameAndKindMatchButNotEquals(KubernetesDeploymentTargetBuildItem other)
-
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
public int compareTo(KubernetesDeploymentTargetBuildItem o)
- Specified by:
compareToin interfaceComparable<KubernetesDeploymentTargetBuildItem>
-
-