Skip to content

Commit 63877a3

Browse files
committed
Merge branch 'main' into fabric8-leader-election
2 parents a0f3fc9 + eb5f90c commit 63877a3

File tree

105 files changed

+331
-219
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+331
-219
lines changed

.github/workflows/composites/clean-space/action.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ runs:
44
using: "composite"
55
steps:
66

7+
- name: Disable man-db to make package install and removal faster
8+
shell: bash
9+
run: |
10+
echo 'set man-db/auto-update false' | sudo debconf-communicate >/dev/null
11+
sudo dpkg-reconfigure man-db
12+
713
- name: Free Disk Space
814
uses: jlumbroso/free-disk-space@main
915
with:

.github/workflows/composites/maven-build-with-dry-run-for-tests/action.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ runs:
1515
- name: find all classpath entries
1616
shell: bash
1717
run: |
18-
./mvnw -q exec:exec -Dexec.classpathScope="test" -Dexec.executable="echo" -Dexec.args="%classpath" | tr : "\n" > /tmp/deps.txt
18+
# skip 'spring-cloud-kubernetes-controllers' project since we do not want to run tests from it.
19+
# we already do that in the 'build-controllers-project/action.yaml', that happens before this step
20+
./mvnw -q exec:exec -Dexec.classpathScope="test" -Dexec.executable="echo" -Dexec.args="%classpath" | tr : "\n" | grep -v spring-cloud-kubernetes-controllers > /tmp/deps.txt
1921
2022
- name: find all tests
2123
shell: bash

.github/workflows/composites/run-and-save-test-times-when-cache-missing/action.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ runs:
4646
-Dhttp.keepAlive=false \
4747
-Dmaven.wagon.http.pool=false \
4848
-Dmaven.wagon.http.retryHandler.class=standard \
49+
-Dmaven.wagon.httpconnectionManager.ttlSeconds=120 \
4950
-Dmaven.wagon.http.retryHandler.count=3 \
51+
-Dmaven.resolver.transport=wagon \
5052
-Dspring-boot.build-image.skip=true
5153
5254
touch /tmp/test_times_${{ env.CURRENT_INDEX }}.txt

.github/workflows/composites/run-and-save-test-times-when-cache-present/action.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,9 @@ runs:
155155
-Dhttp.keepAlive=false \
156156
-Dmaven.wagon.http.pool=false \
157157
-Dmaven.wagon.http.retryHandler.class=standard \
158+
-Dmaven.wagon.httpconnectionManager.ttlSeconds=120 \
158159
-Dmaven.wagon.http.retryHandler.count=3 \
160+
-Dmaven.resolver.transport=wagon \
159161
-Dspring-boot.build-image.skip=true
160162

161163
touch /tmp/test_times_${{ env.CURRENT_INDEX }}.txt

.settings.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@
4646
</repository>
4747
</repositories>
4848
<pluginRepositories>
49+
<pluginRepository>
50+
<id>central</id>
51+
<url>https://repo1.maven.org/maven2/</url>
52+
</pluginRepository>
4953
<pluginRepository>
5054
<id>spring-snapshots</id>
5155
<name>Spring Snapshots</name>

docs/modules/ROOT/pages/property-source-config/configmap-propertysource.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[[configmap-propertysource]]
22
= Using a `ConfigMap` `PropertySource`
33

4-
Kubernetes provides a resource named https://kubernetes.io/docs/user-guide/configmap/[`ConfigMap`] to externalize the
4+
Kubernetes provides a resource named https://kubernetes.io/docs/concepts/configuration/configmap/[`ConfigMap`] to externalize the
55
parameters to pass to your application in the form of key-value pairs or embedded `application.properties` or `application.yaml` files.
66
The link:https://github.com/spring-cloud/spring-cloud-kubernetes/tree/main/spring-cloud-kubernetes-fabric8-config[Spring Cloud Kubernetes Config] project makes Kubernetes `ConfigMap` instances available
77
during application startup and triggers hot reloading of beans or Spring context when changes are detected on

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"@antora/atlas-extension": "1.0.0-alpha.2",
55
"@antora/collector-extension": "1.0.1",
66
"@asciidoctor/tabs": "1.0.0-beta.6",
7-
"@springio/antora-extensions": "1.14.4",
7+
"@springio/antora-extensions": "1.14.6",
88
"@springio/asciidoctor-extensions": "1.0.0-alpha.17"
99
}
1010
}

pom.xml

Lines changed: 41 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
<version>5.0.0-SNAPSHOT</version>
3434
<packaging>pom</packaging>
3535
<name>Spring Cloud Kubernetes</name>
36+
<description>Spring Cloud Kubernetes</description>
3637

3738
<url>https://cloud.spring.io</url>
3839
<inceptionYear>2017</inceptionYear>
@@ -49,7 +50,28 @@
4950
<distribution>repo</distribution>
5051
</license>
5152
</licenses>
52-
53+
<developers>
54+
<developer>
55+
<id>sgibb</id>
56+
<name>Spencer Gibb</name>
57+
<email>spencer.gibb at broadcom.com</email>
58+
<organization>Broadcom, Inc.</organization>
59+
<organizationUrl>https://www.spring.io</organizationUrl>
60+
<roles>
61+
<role>lead</role>
62+
</roles>
63+
</developer>
64+
<developer>
65+
<id>rbaxter</id>
66+
<name>Ryan Baxter</name>
67+
<email>ryan.baxter at broadcom.com</email>
68+
<organization>Broadcom, Inc.</organization>
69+
<organizationUrl>https://www.spring.io</organizationUrl>
70+
<roles>
71+
<role>developer</role>
72+
</roles>
73+
</developer>
74+
</developers>
5375
<scm>
5476
<url>https://github.com/spring-cloud/spring-cloud-kubernetes</url>
5577
<connection>
@@ -229,6 +251,23 @@
229251
</reporting>
230252

231253
<profiles>
254+
<profile>
255+
<id>central</id>
256+
<build>
257+
<plugins>
258+
<plugin>
259+
<groupId>org.sonatype.central</groupId>
260+
<artifactId>central-publishing-maven-plugin</artifactId>
261+
<configuration>
262+
<excludeArtifacts>
263+
<artifact>spring-cloud-kubernetes-examples</artifact>
264+
<artifact>spring-cloud-kubernetes-integration-tests</artifact>
265+
</excludeArtifacts>
266+
</configuration>
267+
</plugin>
268+
</plugins>
269+
</build>
270+
</profile>
232271
<profile>
233272
<id>spring</id>
234273
<repositories>
@@ -298,7 +337,7 @@
298337
<plugin>
299338
<groupId>org.apache.maven.plugins</groupId>
300339
<artifactId>maven-enforcer-plugin</artifactId>
301-
<version>1.4.1</version>
340+
<version>3.6.1</version>
302341
<executions>
303342
<execution>
304343
<id>enforce-no-snapshots</id>

spring-cloud-kubernetes-client-autoconfig/pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<modelVersion>4.0.0</modelVersion>
1111

1212
<artifactId>spring-cloud-kubernetes-client-autoconfig</artifactId>
13+
<name>${project.artifactId}</name>
1314

1415
<dependencies>
1516
<dependency>
@@ -29,6 +30,11 @@
2930
<artifactId>spring-boot-actuator-autoconfigure</artifactId>
3031
<optional>true</optional>
3132
</dependency>
33+
<dependency>
34+
<groupId>org.springframework.boot</groupId>
35+
<artifactId>spring-boot-health</artifactId>
36+
<optional>true</optional>
37+
</dependency>
3238
<dependency>
3339
<groupId>org.springframework.boot</groupId>
3440
<artifactId>spring-boot-autoconfigure</artifactId>

spring-cloud-kubernetes-client-autoconfig/src/main/java/org/springframework/cloud/kubernetes/client/KubernetesClientActuatorConfiguration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2013-2024 the original author or authors.
2+
* Copyright 2013-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -18,8 +18,8 @@
1818

1919
import io.kubernetes.client.openapi.models.V1Pod;
2020

21-
import org.springframework.boot.actuate.autoconfigure.health.ConditionalOnEnabledHealthIndicator;
2221
import org.springframework.boot.actuate.autoconfigure.info.ConditionalOnEnabledInfoContributor;
22+
import org.springframework.boot.health.autoconfigure.contributor.ConditionalOnEnabledHealthIndicator;
2323
import org.springframework.cloud.kubernetes.commons.PodUtils;
2424
import org.springframework.cloud.kubernetes.commons.autoconfig.ConditionalOnKubernetesHealthIndicatorEnabled;
2525
import org.springframework.context.annotation.Bean;

0 commit comments

Comments
 (0)