Class KubernetesClientConfiguration
java.lang.Object
io.micronaut.kubernetes.client.openapi.config.KubernetesClientConfiguration
- All Implemented Interfaces:
io.micronaut.core.util.Toggleable
@Internal
@ConfigurationProperties("kubernetes.client")
@Requires(property="kubernetes.client.enabled",
value="true",
defaultValue="true")
public class KubernetesClientConfiguration
extends Object
implements io.micronaut.core.util.Toggleable
Kubernetes client configuration.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Service account authentication configuration. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionPath of the kube config file.Service account authentication configuration.boolean
Enable/disable kubernetes client.void
setServiceAccount
(KubernetesClientConfiguration.ServiceAccount serviceAccount) Sets service account authentication configuration.
-
Field Details
-
PREFIX
- See Also:
-
-
Constructor Details
-
KubernetesClientConfiguration
public KubernetesClientConfiguration()
-
-
Method Details
-
getKubeConfigPath
Path of the kube config file. Default:file:$HOME/.kube/config
.- Returns:
- kube config path
-
isEnabled
public boolean isEnabled()Enable/disable kubernetes client. Default:true
.- Specified by:
isEnabled
in interfaceio.micronaut.core.util.Toggleable
- Returns:
true
if kubernetes client is enabled,false
otherwise
-
getServiceAccount
Service account authentication configuration.- Returns:
- service account authentication configuration
-
setServiceAccount
Sets service account authentication configuration.- Parameters:
serviceAccount
- service account authentication configuration
-