Package io.quarkus.kubernetes.spi
Class KubernetesEffectiveServiceAccountBuildItem
java.lang.Object
io.quarkus.builder.item.BuildItem
io.quarkus.builder.item.MultiBuildItem
io.quarkus.kubernetes.spi.BaseTargetable
io.quarkus.kubernetes.spi.KubernetesEffectiveServiceAccountBuildItem
- All Implemented Interfaces:
Targetable
This build item is produced once the effective service account used for the generated resources is computed. Useful for
downstream
extensions that need to know this information to wait until it is made available.
-
Constructor Summary
ConstructorsConstructorDescriptionKubernetesEffectiveServiceAccountBuildItem(String serviceAccountName, String namespace, boolean wasSet) KubernetesEffectiveServiceAccountBuildItem(String serviceAccountName, String namespace, boolean wasSet, String target) -
Method Summary
Modifier and TypeMethodDescriptionThe effective service account namespaceThe effective service account name after all the build time configuration has taken effectbooleanwasSet()Determines whether the service account name is automatically derived from the application name as opposed to explicitly set by the userMethods inherited from class io.quarkus.kubernetes.spi.BaseTargetable
getTargetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.quarkus.kubernetes.spi.Targetable
isActiveFor
-
Constructor Details
-
KubernetesEffectiveServiceAccountBuildItem
-
KubernetesEffectiveServiceAccountBuildItem
-
-
Method Details
-
getServiceAccountName
The effective service account name after all the build time configuration has taken effect- Returns:
- the effective service account name as used in the generated manifests for the main application deployment
-
getNamespace
The effective service account namespace- Returns:
- the effective service account name as used in the generated manifests for the main application deployment
-
wasSet
public boolean wasSet()Determines whether the service account name is automatically derived from the application name as opposed to explicitly set by the user- Returns:
trueif the service account is automatically derived from the application name,falseif explicitly set by the user
-