Skip to content

Override CloudPlatform auto-detection with configuration property #20553

@bclozel

Description

@bclozel

Currenlty the CloudPlatform auto-detection (used by the onCloudPlatformCondition) relies on environment properties detection. In some cases, like Kubernetes, we're strictly looking for environment variables, which are hard to mock for tests purposes.

This issue should introduce a new spring.main.cloud-platform configuration property for overriding the auto-detection and forcing a particular cloud platform.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions