Skip to content

Commit de03d15

Browse files
committed
Merge branch '3.2.x'
2 parents 4392062 + 4bfa556 commit de03d15

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

docs/modules/ROOT/pages/spring-cloud-kubernetes-configserver.adoc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ list of namespace values.
2929
NOTE: If you set `spring.cloud.kubernetes.configserver.config-map-namespaces` and/or `spring.cloud.kubernetes.configserver.secrets-namespaces`
3030
you will need to include the namespace in which the Config Server is deployed in order to continue to fetch Config Map and Secret data from that namespace.
3131

32+
### Using Advanced Features Of Spring Vault
33+
In order to use some of the [more advanced Spring Vault features](https://docs.spring.io/spring-cloud-config/reference/server/environment-repository/vault-backend.html) of the **Spring Cloud Config Server**, [`spring-vault-core`](https://mvnrepository.com/artifact/org.springframework.vault/spring-vault-core) must be on the classpath. By default, Spring Cloud Kubernetes can generate a Docker image for deploying Config Server to Kubernetes, but it does not include `spring-vault-core` in the classpath. If you need `spring-core-vault` to enable certain functionality in the Config Server you can build your own version of Docker image by enabling the `vault` Maven profile when running Maven build.
34+
35+
Example:
36+
```bash
37+
$ ../../mvnw clean install -Pvault
38+
```
39+
3240
### Kubernetes Access Controls
3341
The Kubernetes Config Server uses the Kubernetes API server to fetch Config Map and Secret data. In order for it to do that
3442
it needs ability to `get` and `list` Config Map and Secrets (depending on what you enable/disable).

spring-cloud-kubernetes-controllers/spring-cloud-kubernetes-configserver/pom.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,15 @@
9292
<env.IMAGE>springcloud/${project.artifactId}:${project.version}</env.IMAGE>
9393
</properties>
9494
</profile>
95+
<profile>
96+
<id>vault</id>
97+
<dependencies>
98+
<dependency>
99+
<groupId>org.springframework.vault</groupId>
100+
<artifactId>spring-vault-core</artifactId>
101+
</dependency>
102+
</dependencies>
103+
</profile>
95104
</profiles>
96105

97106
</project>

0 commit comments

Comments
 (0)