Table of Contents

Class ConfigurationBuilderExtensions

Namespace
Steeltoe.Extensions.Configuration.Kubernetes.ServiceBinding
Assembly
Steeltoe.Extensions.Configuration.Kubernetes.ServiceBinding.dll

Extension methods for registering Kubernetes Steeltoe.Extensions.Configuration.Kubernetes.ServiceBinding.ServiceBindingConfigurationProvider 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 to.

Returns

IConfigurationBuilder

The IConfigurationBuilder.

AddKubernetesServiceBindings(IConfigurationBuilder, bool)

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)

Parameters

builder IConfigurationBuilder

The IConfigurationBuilder to add to.

optional bool

Whether the directory path is optional.

Returns

IConfigurationBuilder

The IConfigurationBuilder.

AddKubernetesServiceBindings(IConfigurationBuilder, bool, bool)

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)

Parameters

builder IConfigurationBuilder

The IConfigurationBuilder to add 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.

Returns

IConfigurationBuilder

The IConfigurationBuilder.

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

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)

Parameters

builder IConfigurationBuilder

The IConfigurationBuilder to add 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 which is called before adding a key to the configuration. If it returns false, the key will be ignored.

Returns

IConfigurationBuilder

The IConfigurationBuilder.