Skip to content

Commit e529dc9

Browse files
committed
Update SNAPSHOT to 1.0.2.RELEASE
1 parent 4a73d4e commit e529dc9

File tree

34 files changed

+96
-44
lines changed

34 files changed

+96
-44
lines changed

README.adoc

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,59 @@ However, if the `production` profile is active, the configuration becomes:
324324

325325
If both profiles are active, the property that appears last within the `ConfigMap` overwrites any preceding values.
326326

327+
Another option is to create a different config map per profile and spring boot will automatically fetch it based
328+
on active profiles
329+
330+
====
331+
[source,yaml]
332+
----
333+
kind: ConfigMap
334+
apiVersion: v1
335+
metadata:
336+
name: demo
337+
data:
338+
application.yml: |-
339+
greeting:
340+
message: Say Hello to the World
341+
farewell:
342+
message: Say Goodbye
343+
----
344+
====
345+
====
346+
[source,yaml]
347+
----
348+
kind: ConfigMap
349+
apiVersion: v1
350+
metadata:
351+
name: demo-development
352+
data:
353+
application.yml: |-
354+
spring:
355+
profiles: development
356+
greeting:
357+
message: Say Hello to the Developers
358+
farewell:
359+
message: Say Goodbye to the Developers
360+
----
361+
====
362+
====
363+
[source,yaml]
364+
----
365+
kind: ConfigMap
366+
apiVersion: v1
367+
metadata:
368+
name: demo-production
369+
data:
370+
application.yml: |-
371+
spring:
372+
profiles: production
373+
greeting:
374+
message: Say Hello to the Ops
375+
farewell:
376+
message: Say Goodbye
377+
----
378+
====
379+
327380

328381
To tell Spring Boot which `profile` should be enabled at bootstrap, you can pass a system property to the Java
329382
command. To do so, you can launch your Spring Boot application with an environment variable that you can define with the OpenShift

docs/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<parent>
99
<groupId>org.springframework.cloud</groupId>
1010
<artifactId>spring-cloud-kubernetes</artifactId>
11-
<version>1.0.3.BUILD-SNAPSHOT</version>
11+
<version>1.0.2.RELEASE</version>
1212
</parent>
1313
<packaging>pom</packaging>
1414
<name>Spring Cloud Kubernetes Docs</name>

pom.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@
2424
<parent>
2525
<groupId>org.springframework.cloud</groupId>
2626
<artifactId>spring-cloud-build</artifactId>
27-
<version>2.1.4.BUILD-SNAPSHOT</version>
27+
<version>2.1.5.RELEASE</version>
2828
<relativePath/>
2929
</parent>
3030

3131
<groupId>org.springframework.cloud</groupId>
3232
<artifactId>spring-cloud-kubernetes</artifactId>
33-
<version>1.0.3.BUILD-SNAPSHOT</version>
33+
<version>1.0.2.RELEASE</version>
3434
<packaging>pom</packaging>
3535
<name>Spring Cloud Kubernetes</name>
3636

@@ -63,9 +63,9 @@
6363

6464
<properties>
6565
<!-- Dependency Versions -->
66-
<spring-cloud-commons.version>2.1.2.BUILD-SNAPSHOT</spring-cloud-commons.version>
67-
<spring-cloud-netflix.version>2.1.2.BUILD-SNAPSHOT</spring-cloud-netflix.version>
68-
<spring-cloud-config.version>2.1.2.BUILD-SNAPSHOT</spring-cloud-config.version>
66+
<spring-cloud-commons.version>2.1.2.RELEASE</spring-cloud-commons.version>
67+
<spring-cloud-netflix.version>2.1.2.RELEASE</spring-cloud-netflix.version>
68+
<spring-cloud-config.version>2.1.3.RELEASE</spring-cloud-config.version>
6969

7070
<!-- Maven Plugin Versions -->
7171
<maven-compiler-plugin.version>3.5</maven-compiler-plugin.version>

spring-cloud-kubernetes-config/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>spring-cloud-kubernetes</artifactId>
77
<groupId>org.springframework.cloud</groupId>
8-
<version>1.0.3.BUILD-SNAPSHOT</version>
8+
<version>1.0.2.RELEASE</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

spring-cloud-kubernetes-config/src/main/java/org/springframework/cloud/kubernetes/config/ConfigMapPropertySource.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,16 +99,18 @@ private static Map<String, String> getData(KubernetesClient client, String name,
9999
}
100100

101101
if (environment != null) {
102-
for (String activeProfile:environment.getActiveProfiles()) {
102+
for (String activeProfile : environment.getActiveProfiles()) {
103103

104104
String mapNameWithProfile = name + "-" + activeProfile;
105105

106106
ConfigMap mapWithProfile = StringUtils.isEmpty(namespace)
107-
? client.configMaps().withName(mapNameWithProfile).get()
108-
: client.configMaps().inNamespace(namespace).withName(mapNameWithProfile).get();
107+
? client.configMaps().withName(mapNameWithProfile).get()
108+
: client.configMaps().inNamespace(namespace)
109+
.withName(mapNameWithProfile).get();
109110

110111
if (mapWithProfile != null) {
111-
result.putAll(processAllEntries(mapWithProfile.getData(), environment));
112+
result.putAll(
113+
processAllEntries(mapWithProfile.getData(), environment));
112114
}
113115

114116
}
@@ -125,7 +127,6 @@ private static Map<String, String> getData(KubernetesClient client, String name,
125127
return new HashMap<>();
126128
}
127129

128-
129130
private static Map<String, String> processAllEntries(Map<String, String> input,
130131
Environment environment) {
131132

spring-cloud-kubernetes-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>org.springframework.cloud</groupId>
2424
<artifactId>spring-cloud-kubernetes</artifactId>
25-
<version>1.0.3.BUILD-SNAPSHOT</version>
25+
<version>1.0.2.RELEASE</version>
2626
</parent>
2727
<modelVersion>4.0.0</modelVersion>
2828

spring-cloud-kubernetes-dependencies/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
<parent>
2424
<artifactId>spring-cloud-dependencies-parent</artifactId>
2525
<groupId>org.springframework.cloud</groupId>
26-
<version>2.1.4.BUILD-SNAPSHOT</version>
26+
<version>2.1.5.RELEASE</version>
2727
<relativePath/>
2828
</parent>
2929
<artifactId>spring-cloud-kubernetes-dependencies</artifactId>
30-
<version>1.0.3.BUILD-SNAPSHOT</version>
30+
<version>1.0.2.RELEASE</version>
3131
<packaging>pom</packaging>
3232
<name>Spring Cloud Kubernetes :: Dependencies</name>
3333
<description>Spring Cloud Kubernetes Dependencies</description>

spring-cloud-kubernetes-discovery/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>org.springframework.cloud</groupId>
2424
<artifactId>spring-cloud-kubernetes</artifactId>
25-
<version>1.0.3.BUILD-SNAPSHOT</version>
25+
<version>1.0.2.RELEASE</version>
2626
</parent>
2727
<modelVersion>4.0.0</modelVersion>
2828

spring-cloud-kubernetes-examples/kubernetes-circuitbreaker-ribbon-example/greeting-service/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<parent>
2424
<groupId>org.springframework.cloud</groupId>
2525
<artifactId>kubernetes-circuitbreaker-ribbon-example</artifactId>
26-
<version>1.0.3.BUILD-SNAPSHOT</version>
26+
<version>1.0.2.RELEASE</version>
2727
</parent>
2828

2929
<artifactId>greeting-service</artifactId>

spring-cloud-kubernetes-examples/kubernetes-circuitbreaker-ribbon-example/name-service/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<parent>
2424
<groupId>org.springframework.cloud</groupId>
2525
<artifactId>kubernetes-circuitbreaker-ribbon-example</artifactId>
26-
<version>1.0.3.BUILD-SNAPSHOT</version>
26+
<version>1.0.2.RELEASE</version>
2727
</parent>
2828

2929
<artifactId>name-service</artifactId>

spring-cloud-kubernetes-examples/kubernetes-circuitbreaker-ribbon-example/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<parent>
2424
<artifactId>spring-cloud-kubernetes-examples</artifactId>
2525
<groupId>org.springframework.cloud</groupId>
26-
<version>1.0.3.BUILD-SNAPSHOT</version>
26+
<version>1.0.2.RELEASE</version>
2727
</parent>
2828

2929
<groupId>org.springframework.cloud</groupId>

spring-cloud-kubernetes-examples/kubernetes-hello-world-example/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>spring-cloud-kubernetes-examples</artifactId>
77
<groupId>org.springframework.cloud</groupId>
8-
<version>1.0.3.BUILD-SNAPSHOT</version>
8+
<version>1.0.2.RELEASE</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

spring-cloud-kubernetes-examples/kubernetes-leader-election-example/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.springframework.cloud</groupId>
88
<artifactId>spring-cloud-kubernetes-examples</artifactId>
9-
<version>1.0.3.BUILD-SNAPSHOT</version>
9+
<version>1.0.2.RELEASE</version>
1010
</parent>
1111

1212
<artifactId>kubernetes-leader-election-example</artifactId>

spring-cloud-kubernetes-examples/kubernetes-reload-example/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<artifactId>spring-cloud-kubernetes-examples</artifactId>
2424
<groupId>org.springframework.cloud</groupId>
25-
<version>1.0.3.BUILD-SNAPSHOT</version>
25+
<version>1.0.2.RELEASE</version>
2626
</parent>
2727
<modelVersion>4.0.0</modelVersion>
2828

spring-cloud-kubernetes-examples/kubernetes-zipkin-example/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<artifactId>spring-cloud-kubernetes-examples</artifactId>
2424
<groupId>org.springframework.cloud</groupId>
25-
<version>1.0.3.BUILD-SNAPSHOT</version>
25+
<version>1.0.2.RELEASE</version>
2626
</parent>
2727
<modelVersion>4.0.0</modelVersion>
2828

spring-cloud-kubernetes-examples/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<parent>
2424
<artifactId>spring-cloud-kubernetes</artifactId>
2525
<groupId>org.springframework.cloud</groupId>
26-
<version>1.0.3.BUILD-SNAPSHOT</version>
26+
<version>1.0.2.RELEASE</version>
2727
</parent>
2828

2929
<artifactId>spring-cloud-kubernetes-examples</artifactId>

spring-cloud-kubernetes-integration-tests/discovery/discovery-client/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.springframework.cloud</groupId>
99
<artifactId>discovery-parent</artifactId>
10-
<version>1.0.3.BUILD-SNAPSHOT</version>
10+
<version>1.0.2.RELEASE</version>
1111
</parent>
1212

1313
<artifactId>discovery-client</artifactId>

spring-cloud-kubernetes-integration-tests/discovery/discovery-service-a/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.springframework.cloud</groupId>
99
<artifactId>discovery-parent</artifactId>
10-
<version>1.0.3.BUILD-SNAPSHOT</version>
10+
<version>1.0.2.RELEASE</version>
1111
</parent>
1212

1313
<artifactId>discovery-service-a</artifactId>

spring-cloud-kubernetes-integration-tests/discovery/discovery-service-b/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.springframework.cloud</groupId>
99
<artifactId>discovery-parent</artifactId>
10-
<version>1.0.3.BUILD-SNAPSHOT</version>
10+
<version>1.0.2.RELEASE</version>
1111
</parent>
1212

1313
<artifactId>discovery-service-b</artifactId>

spring-cloud-kubernetes-integration-tests/discovery/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.springframework.cloud</groupId>
99
<artifactId>spring-cloud-kubernetes-integration-tests</artifactId>
10-
<version>1.0.3.BUILD-SNAPSHOT</version>
10+
<version>1.0.2.RELEASE</version>
1111
</parent>
1212

1313
<name>Spring Cloud Kubernetes :: Integration Tests :: Discovery Parent</name>

spring-cloud-kubernetes-integration-tests/discovery/tests/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.springframework.cloud</groupId>
99
<artifactId>discovery-parent</artifactId>
10-
<version>1.0.3.BUILD-SNAPSHOT</version>
10+
<version>1.0.2.RELEASE</version>
1111
</parent>
1212

1313
<artifactId>tests</artifactId>

spring-cloud-kubernetes-integration-tests/istio/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.springframework.cloud</groupId>
99
<artifactId>spring-cloud-kubernetes-integration-tests</artifactId>
10-
<version>1.0.3.BUILD-SNAPSHOT</version>
10+
<version>1.0.2.RELEASE</version>
1111
</parent>
1212

1313
<name>Spring Cloud Kubernetes :: Integration Tests :: Istio</name>

spring-cloud-kubernetes-integration-tests/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.springframework.cloud</groupId>
88
<artifactId>spring-cloud-kubernetes</artifactId>
9-
<version>1.0.3.BUILD-SNAPSHOT</version>
9+
<version>1.0.2.RELEASE</version>
1010
</parent>
1111

1212
<artifactId>spring-cloud-kubernetes-integration-tests</artifactId>

spring-cloud-kubernetes-integration-tests/simple-configmap/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.springframework.cloud</groupId>
99
<artifactId>spring-cloud-kubernetes-integration-tests</artifactId>
10-
<version>1.0.3.BUILD-SNAPSHOT</version>
10+
<version>1.0.2.RELEASE</version>
1111
</parent>
1212

1313
<name>Spring Cloud Kubernetes :: Integration Tests :: Simple Configmap</name>

spring-cloud-kubernetes-integration-tests/simple-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.springframework.cloud</groupId>
99
<artifactId>spring-cloud-kubernetes-integration-tests</artifactId>
10-
<version>1.0.3.BUILD-SNAPSHOT</version>
10+
<version>1.0.2.RELEASE</version>
1111
</parent>
1212

1313
<name>Spring Cloud Kubernetes :: Integration Tests :: Simple Core</name>

spring-cloud-kubernetes-istio/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>spring-cloud-kubernetes</artifactId>
77
<groupId>org.springframework.cloud</groupId>
8-
<version>1.0.3.BUILD-SNAPSHOT</version>
8+
<version>1.0.2.RELEASE</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

spring-cloud-kubernetes-leader/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>org.springframework.cloud</groupId>
2424
<artifactId>spring-cloud-kubernetes</artifactId>
25-
<version>1.0.3.BUILD-SNAPSHOT</version>
25+
<version>1.0.2.RELEASE</version>
2626
</parent>
2727

2828
<artifactId>spring-cloud-kubernetes-leader</artifactId>

spring-cloud-kubernetes-leader/src/main/java/org/springframework/cloud/kubernetes/leader/LeaderAutoConfiguration.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@
4141
@Configuration
4242
@EnableConfigurationProperties(LeaderProperties.class)
4343
@ConditionalOnBean(KubernetesClient.class)
44-
@ConditionalOnProperty(value = "spring.cloud.kubernetes.leader.enabled",
45-
matchIfMissing = true)
44+
@ConditionalOnProperty(value = "spring.cloud.kubernetes.leader.enabled", matchIfMissing = true)
4645
public class LeaderAutoConfiguration {
4746

4847
@Bean

spring-cloud-kubernetes-leader/src/test/java/org/springframework/cloud/kubernetes/leader/LeaderAutoConfigurationTests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@
3333
@RunWith(SpringRunner.class)
3434
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, properties = {
3535
// Make sure test passes without Kubernetes cluster
36-
"spring.cloud.kubernetes.leader.autoStartup=false"
37-
})
36+
"spring.cloud.kubernetes.leader.autoStartup=false" })
3837
public class LeaderAutoConfigurationTests {
3938

4039
@Value("${local.server.port}")

spring-cloud-kubernetes-ribbon/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<artifactId>spring-cloud-kubernetes</artifactId>
2424
<groupId>org.springframework.cloud</groupId>
25-
<version>1.0.3.BUILD-SNAPSHOT</version>
25+
<version>1.0.2.RELEASE</version>
2626
</parent>
2727
<modelVersion>4.0.0</modelVersion>
2828

spring-cloud-starter-kubernetes-all/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<artifactId>spring-cloud-kubernetes</artifactId>
2424
<groupId>org.springframework.cloud</groupId>
25-
<version>1.0.3.BUILD-SNAPSHOT</version>
25+
<version>1.0.2.RELEASE</version>
2626
</parent>
2727
<modelVersion>4.0.0</modelVersion>
2828

spring-cloud-starter-kubernetes-config/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<artifactId>spring-cloud-kubernetes</artifactId>
2424
<groupId>org.springframework.cloud</groupId>
25-
<version>1.0.3.BUILD-SNAPSHOT</version>
25+
<version>1.0.2.RELEASE</version>
2626
</parent>
2727
<modelVersion>4.0.0</modelVersion>
2828

spring-cloud-starter-kubernetes-ribbon/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<artifactId>spring-cloud-kubernetes</artifactId>
2424
<groupId>org.springframework.cloud</groupId>
25-
<version>1.0.3.BUILD-SNAPSHOT</version>
25+
<version>1.0.2.RELEASE</version>
2626
</parent>
2727
<modelVersion>4.0.0</modelVersion>
2828

0 commit comments

Comments
 (0)