Table of Contents

Class ConfigurationBuilderExtensions

Namespace
Steeltoe.Configuration.Kubernetes.ServiceBindings
Assembly
Steeltoe.Configuration.Kubernetes.ServiceBindings.dll

Extension methods for registering Kubernetes Steeltoe.Configuration.Kubernetes.ServiceBindings.KubernetesServiceBindingConfigurationProvider with IConfigurationBuilder.

public static class ConfigurationBuilderExtensions
Inheritance
ConfigurationBuilderExtensions
Inherited Members

Methods

AddKubernetesServiceBindings(IConfigurationBuilder)

Adds configuration using files from the directory path specified by the environment variable "SERVICE_BINDING_ROOT". File name and directory paths are used as the key, and the file contents are used as the values.

public static IConfigurationBuilder AddKubernetesServiceBindings(this IConfigurationBuilder builder)

Parameters

builder IConfigurationBuilder

The IConfigurationBuilder to add configuration to.

Returns

IConfigurationBuilder

The incoming builder so that additional calls can be chained.

AddKubernetesServiceBindings(IConfigurationBuilder, IServiceBindingsReader)

Adds configuration using files from the directory path specified by the environment variable "SERVICE_BINDING_ROOT". File name and directory paths are used as the key, and the file contents are used as the values.

public static IConfigurationBuilder AddKubernetesServiceBindings(this IConfigurationBuilder builder, IServiceBindingsReader serviceBindingsReader)

Parameters

builder IConfigurationBuilder

The IConfigurationBuilder to add configuration to.

serviceBindingsReader IServiceBindingsReader

The source to read Kubernetes secret files on disk from.

Returns

IConfigurationBuilder

The incoming builder so that additional calls can be chained.

AddKubernetesServiceBindings(IConfigurationBuilder, bool, bool, Predicate<string>, IServiceBindingsReader, ILoggerFactory)

Adds configuration using files from the directory path specified by the environment variable "SERVICE_BINDING_ROOT". File name and directory paths are used as the key, and the file contents are used as the values.

public static IConfigurationBuilder AddKubernetesServiceBindings(this IConfigurationBuilder builder, bool optional, bool reloadOnChange, Predicate<string> ignoreKeyPredicate, IServiceBindingsReader serviceBindingsReader, ILoggerFactory loggerFactory)

Parameters

builder IConfigurationBuilder

The IConfigurationBuilder to add configuration to.

optional bool

Whether the directory path is optional.

reloadOnChange bool

Whether the configuration should be reloaded if the files are changed, added or removed.

ignoreKeyPredicate Predicate<string>

A predicate that is called before adding a key to the configuration. If it returns false, the key will be ignored.

serviceBindingsReader IServiceBindingsReader

The source to read Kubernetes secret files on disk from.

loggerFactory ILoggerFactory

Used for internal logging. Pass Instance to disable logging.

Returns

IConfigurationBuilder

The incoming builder so that additional calls can be chained.