Module org.github.gestalt.core
Package org.github.gestalt.config.source
Class KubernetesSecretConfigSourceBuilder
- java.lang.Object
-
- org.github.gestalt.config.builder.SourceBuilder<KubernetesSecretConfigSourceBuilder,KubernetesSecretConfigSource>
-
- org.github.gestalt.config.source.KubernetesSecretConfigSourceBuilder
-
public final class KubernetesSecretConfigSourceBuilder extends SourceBuilder<KubernetesSecretConfigSourceBuilder,KubernetesSecretConfigSource>
ConfigSourceBuilder for the Kubernetes Secret Config Source.Load a config source as kubernetes files secrets. ... Where the name of the file is the path for the configuration and the value in the file is the value of the configuration.
-
-
Field Summary
-
Fields inherited from class org.github.gestalt.config.builder.SourceBuilder
configReloadStrategies, source, tags
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigSourcePackagebuild()Build the ConfigSourcePackage with the config source, tags and any reload strategies.static KubernetesSecretConfigSourceBuilderbuilder()Static function to create the builder.java.io.FilegetFile()Get the folder to watch for the Kubernetes secrets.java.nio.file.PathgetPath()Get the folder to watch for the Kubernetes secrets.KubernetesSecretConfigSourceBuildersetFile(java.io.File file)Set the folder to watch for the Kubernetes secrets.KubernetesSecretConfigSourceBuildersetPath(java.nio.file.Path path)Set the folder to watch for the Kubernetes secrets.-
Methods inherited from class org.github.gestalt.config.builder.SourceBuilder
addConfigReloadStrategy, addTag, buildPackage, getConfigReloadStrategies, getTags, self, setTags
-
-
-
-
Method Detail
-
builder
public static KubernetesSecretConfigSourceBuilder builder()
Static function to create the builder.- Returns:
- the builder
-
getPath
public java.nio.file.Path getPath()
Get the folder to watch for the Kubernetes secrets.- Returns:
- the folder to watch for the Kubernetes secrets.
-
setPath
public KubernetesSecretConfigSourceBuilder setPath(java.nio.file.Path path)
Set the folder to watch for the Kubernetes secrets.- Parameters:
path- the folder to watch for the Kubernetes secrets.- Returns:
- the builder
-
getFile
public java.io.File getFile()
Get the folder to watch for the Kubernetes secrets.- Returns:
- the folder to watch for the Kubernetes secrets.
-
setFile
public KubernetesSecretConfigSourceBuilder setFile(java.io.File file)
Set the folder to watch for the Kubernetes secrets.- Parameters:
file- the folder to watch for the Kubernetes secrets.- Returns:
- the builder
-
build
public ConfigSourcePackage build() throws GestaltException
Description copied from class:SourceBuilderBuild the ConfigSourcePackage with the config source, tags and any reload strategies.- Specified by:
buildin classSourceBuilder<KubernetesSecretConfigSourceBuilder,KubernetesSecretConfigSource>- Returns:
- the ConfigSourcePackage with the config source, tags and any reload strategies.
- Throws:
GestaltException- exceptions if any of the required properties are not set.
-
-