Package io.micronaut.kubernetes
Class KubernetesConfiguration
java.lang.Object
io.micronaut.kubernetes.KubernetesConfiguration
@Requires(env="k8s")
@ConfigurationProperties("kubernetes.client")
public class KubernetesConfiguration
extends Object
Encapsulates constants for Kubernetes configuration.
- Since:
- 1.0.0
- Author:
- Sergio del Amo, Álvaro Sánchez-Mariscal
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Base class for config-maps and secrets.static class
Kubernetes config maps configuration properties.static class
Configuration class for the discovery client of Kubernetes.static class
Kubernetes secrets configuration properties. -
Field Summary
-
Constructor Summary
ConstructorDescriptionKubernetesConfiguration
(NamespaceResolver namespaceResolver) Default constructor. -
Method Summary
Modifier and TypeMethodDescription@NonNull String
void
setConfigMaps
(KubernetesConfiguration.KubernetesConfigMapsConfiguration configMapsConfiguration) void
setDiscovery
(KubernetesConfiguration.KubernetesDiscoveryConfiguration discoveryConfiguration) void
setNamespace
(String namespace) void
setSecrets
(KubernetesConfiguration.KubernetesSecretsConfiguration secretsConfiguration) toString()
-
Field Details
-
PREFIX
- See Also:
-
-
Constructor Details
-
KubernetesConfiguration
Default constructor.- Parameters:
namespaceResolver
- namespace resolver
-
-
Method Details
-
getDiscovery
- Returns:
- The
DiscoveryConfiguration
.
-
setDiscovery
public void setDiscovery(KubernetesConfiguration.KubernetesDiscoveryConfiguration discoveryConfiguration) - Parameters:
discoveryConfiguration
- The discovery configuration
-
getNamespace
- Returns:
- the namespace
-
setNamespace
- Parameters:
namespace
- Sets the namespace.
-
getSecrets
- Returns:
- the
KubernetesConfiguration.KubernetesSecretsConfiguration
.
-
setSecrets
- Parameters:
secretsConfiguration
- theKubernetesConfiguration.KubernetesSecretsConfiguration
.
-
getConfigMaps
- Returns:
- The config maps configuration properties
-
setConfigMaps
public void setConfigMaps(KubernetesConfiguration.KubernetesConfigMapsConfiguration configMapsConfiguration) - Parameters:
configMapsConfiguration
- The config maps configuration properties
-
toString
-