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

public final class KubernetesEffectiveServiceAccountBuildItem extends BaseTargetable
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 Details

    • KubernetesEffectiveServiceAccountBuildItem

      public KubernetesEffectiveServiceAccountBuildItem(String serviceAccountName, String namespace, boolean wasSet)
    • KubernetesEffectiveServiceAccountBuildItem

      public KubernetesEffectiveServiceAccountBuildItem(String serviceAccountName, String namespace, boolean wasSet, String target)
  • Method Details

    • getServiceAccountName

      public String 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

      public String 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:
      true if the service account is automatically derived from the application name, false if explicitly set by the user