Skip to content

Commit eb5f90c

Browse files
committed
2 parents c4509c8 + 4ed119b commit eb5f90c

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@
5151
<artifactId>spring-cloud-kubernetes-test-support</artifactId>
5252
<scope>test</scope>
5353
</dependency>
54+
<dependency>
55+
<groupId>org.springframework.boot</groupId>
56+
<artifactId>spring-boot-restclient</artifactId>
57+
<scope>test</scope>
58+
</dependency>
5459
</dependencies>
5560

5661
<profiles>

spring-cloud-kubernetes-controllers/spring-cloud-kubernetes-configserver/src/main/java/org/springframework/cloud/kubernetes/configserver/KubernetesConfigServerApplication.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
import org.springframework.boot.autoconfigure.SpringBootApplication;
2020
import org.springframework.boot.builder.SpringApplicationBuilder;
21-
import org.springframework.cloud.config.server.ConfigServerApplication;
2221
import org.springframework.cloud.config.server.EnableConfigServer;
2322

2423
/**
@@ -29,7 +28,9 @@
2928
public class KubernetesConfigServerApplication {
3029

3130
public static void main(String[] args) {
32-
new SpringApplicationBuilder(ConfigServerApplication.class).run(args);
31+
new SpringApplicationBuilder(KubernetesConfigServerApplication.class)
32+
.properties("spring.config.name=configserver")
33+
.run(args);
3334
}
3435

3536
}

spring-cloud-kubernetes-discovery/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
<dependency>
1717
<groupId>org.springframework.boot</groupId>
1818
<artifactId>spring-boot-restclient</artifactId>
19-
<optional>true</optional>
2019
</dependency>
2120
<dependency>
2221
<groupId>org.springframework.boot</groupId>

0 commit comments

Comments
 (0)