Class KubernetesLegacyImportMode

java.lang.Object
io.micronaut.kubernetes.configuration.imports.KubernetesLegacyImportMode

@Internal public final class KubernetesLegacyImportMode extends Object
Tracks use of legacy Kubernetes bootstrap imports and emits a deprecation warning when needed.
  • Method Details

    • isConfigMapImportEnabled

      public static boolean isConfigMapImportEnabled()
      Returns:
      Whether ConfigMap import support is active for the current application run
    • isSecretImportEnabled

      public static boolean isSecretImportEnabled()
      Returns:
      Whether Secret import support is active for the current application run
    • logLegacyBootstrapDeprecationIfNeeded

      public static void logLegacyBootstrapDeprecationIfNeeded(boolean legacyBootstrapActive)
      Logs the legacy bootstrap deprecation warning once when legacy bootstrap mode is active.
      Parameters:
      legacyBootstrapActive - Whether legacy bootstrap configuration loading is active