Clarify k8s ConfigMap property source instructions (#1549)
This commit updates the property-source-config.adoc to clarify the need to escape the "kubernetes:" value for the 'spring.config.import' property. Co-authored-by: Ryan Baxter <rbaxter@vmware.com>
This commit is contained in:
@@ -5,7 +5,7 @@ an `application-profile.properties` or `application-profile.yaml` file that cont
|
||||
application or Spring Boot starters. You can override these properties by specifying system properties or environment
|
||||
variables.
|
||||
|
||||
To enable this functionality you need to set `spring.config.import=kubernetes:` in your application's configuration properties.
|
||||
To enable this functionality you need to set the `spring.config.import` application configuration property to `kubernetes:` (escape with quotes when using yaml eg. `"kubernetes:"`).
|
||||
Currently you can not specify a ConfigMap or Secret to load using `spring.config.import`, by default Spring Cloud Kubernetes
|
||||
will load a ConfigMap and/or Secret based on the `spring.application.name` property. If `spring.application.name` is not set it will
|
||||
load a ConfigMap and/or Secret with the name `application`.
|
||||
|
||||
Reference in New Issue
Block a user