From e82272b165d20327eada52c235a245eb071a1e8e Mon Sep 17 00:00:00 2001 From: Chris Bono Date: Tue, 26 Dec 2023 09:29:40 -0600 Subject: [PATCH] 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 --- docs/src/main/asciidoc/property-source-config.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/main/asciidoc/property-source-config.adoc b/docs/src/main/asciidoc/property-source-config.adoc index fe7e513f..c10d2942 100644 --- a/docs/src/main/asciidoc/property-source-config.adoc +++ b/docs/src/main/asciidoc/property-source-config.adoc @@ -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`.