Class KubernetesLegacyImportMode
java.lang.Object
io.micronaut.kubernetes.configuration.imports.KubernetesLegacyImportMode
Tracks use of legacy Kubernetes bootstrap imports and emits a deprecation warning when needed.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic booleanstatic voidlogLegacyBootstrapDeprecationIfNeeded(boolean legacyBootstrapActive) Logs the legacy bootstrap deprecation warning once when legacy bootstrap mode is active.
-
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
-