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
Nested ClassesModifier and TypeClassDescriptionstatic classService account authentication configuration. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionPath of the kube config file.Kubernetes client namespace.Service account authentication configuration.booleanEnable/disable kubernetes client.voidsetNamespace(String namespace) Sets kubernetes client namespace.voidsetServiceAccount(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:
isEnabledin interfaceio.micronaut.core.util.Toggleable- Returns:
trueif kubernetes client is enabled,falseotherwise
-
getNamespace
Kubernetes client namespace.- Returns:
- kubernetes client namespace
-
setNamespace
Sets kubernetes client namespace.- Parameters:
namespace- the kubernetes client namespace
-
getServiceAccount
Service account authentication configuration.- Returns:
- service account authentication configuration
-
setServiceAccount
Sets service account authentication configuration.- Parameters:
serviceAccount- service account authentication configuration
-