Skip to content

Commit 5b9b496

Browse files
authored
Simplify adding Cloud Foundry to Configuration via HostBuilder extension method (#423)
1 parent 586bbde commit 5b9b496

File tree

1 file changed

+1
-4
lines changed
  • Configuration/src/ConfigurationProviders

1 file changed

+1
-4
lines changed

Configuration/src/ConfigurationProviders/Program.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
// Steeltoe: Add Configuration providers.
2525
builder.Configuration.AddRandomValueSource(bootstrapLoggerFactory);
2626
builder.Configuration.AddKubernetesServiceBindings();
27-
builder.Configuration.AddCloudFoundry(null, bootstrapLoggerFactory);
2827
builder.Configuration.AddPlaceholderResolver(bootstrapLoggerFactory);
28+
builder.AddCloudFoundryConfiguration(bootstrapLoggerFactory);
2929
builder.AddConfigServer(bootstrapLoggerFactory);
3030

3131
// Steeltoe: Upgrade the created bootstrap loggers from settings in the service container.
@@ -34,9 +34,6 @@
3434
// Steeltoe: Add actuator endpoints.
3535
builder.Services.AddAllActuators();
3636

37-
// Steeltoe: map VCAP_APPLICATION and VCAP_SERVICES to IOptions<CloudFoundryApplicationOptions> and IOptions<CloudFoundryServicesOptions>
38-
builder.Services.AddCloudFoundryOptions();
39-
4037
// Steeltoe: Optionally enables usage of "spring:cloud:config" keys to configure Spring Cloud Config Server.
4138
builder.Services.ConfigureConfigServerClientOptions();
4239

0 commit comments

Comments
 (0)