Skip to content

Commit 285c84a

Browse files
committed
Merge branch 'master' of https://github.com/kubernetes-client/java into metrics-label-selector
2 parents 637cd9e + a706d0a commit 285c84a

File tree

7 files changed

+32
-22
lines changed

7 files changed

+32
-22
lines changed

examples/examples-release-17/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
<plugin>
9797
<groupId>com.diffplug.spotless</groupId>
9898
<artifactId>spotless-maven-plugin</artifactId>
99-
<version>2.45.0</version>
99+
<version>2.46.1</version>
100100
</plugin>
101101
<plugin>
102102
<groupId>org.sonatype.plugins</groupId>
@@ -116,7 +116,7 @@
116116
</plugins>
117117
</build>
118118
<properties>
119-
<junit-jupiter.version>5.13.3</junit-jupiter.version>
120-
<spring.boot.version>3.5.3</spring.boot.version>
119+
<junit-jupiter.version>5.13.4</junit-jupiter.version>
120+
<spring.boot.version>3.5.4</spring.boot.version>
121121
</properties>
122122
</project>

examples/examples-release-18/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
<plugin>
9898
<groupId>com.diffplug.spotless</groupId>
9999
<artifactId>spotless-maven-plugin</artifactId>
100-
<version>2.45.0</version>
100+
<version>2.46.1</version>
101101
</plugin>
102102
<plugin>
103103
<groupId>org.sonatype.plugins</groupId>
@@ -117,7 +117,7 @@
117117
</plugins>
118118
</build>
119119
<properties>
120-
<junit-jupiter.version>5.13.3</junit-jupiter.version>
121-
<spring.boot.version>3.5.3</spring.boot.version>
120+
<junit-jupiter.version>5.13.4</junit-jupiter.version>
121+
<spring.boot.version>3.5.4</spring.boot.version>
122122
</properties>
123123
</project>

examples/examples-release-19/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
<plugin>
102102
<groupId>com.diffplug.spotless</groupId>
103103
<artifactId>spotless-maven-plugin</artifactId>
104-
<version>2.45.0</version>
104+
<version>2.46.1</version>
105105
</plugin>
106106
<plugin>
107107
<groupId>org.sonatype.plugins</groupId>
@@ -121,7 +121,7 @@
121121
</plugins>
122122
</build>
123123
<properties>
124-
<junit-jupiter.version>5.13.3</junit-jupiter.version>
125-
<spring.boot.version>3.5.3</spring.boot.version>
124+
<junit-jupiter.version>5.13.4</junit-jupiter.version>
125+
<spring.boot.version>3.5.4</spring.boot.version>
126126
</properties>
127127
</project>

examples/examples-release-20/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
<plugin>
102102
<groupId>com.diffplug.spotless</groupId>
103103
<artifactId>spotless-maven-plugin</artifactId>
104-
<version>2.45.0</version>
104+
<version>2.46.1</version>
105105
</plugin>
106106
<plugin>
107107
<groupId>org.sonatype.plugins</groupId>
@@ -121,7 +121,7 @@
121121
</plugins>
122122
</build>
123123
<properties>
124-
<junit-jupiter.version>5.13.3</junit-jupiter.version>
125-
<spring.boot.version>3.5.3</spring.boot.version>
124+
<junit-jupiter.version>5.13.4</junit-jupiter.version>
125+
<spring.boot.version>3.5.4</spring.boot.version>
126126
</properties>
127127
</project>

pom.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@
5050
<slf4j.version>2.0.17</slf4j.version>
5151
<caffeine.version>2.9.3</caffeine.version>
5252
<protobuf.version>4.31.1</protobuf.version>
53-
<junit-jupiter.version>5.13.3</junit-jupiter.version>
53+
<junit-jupiter.version>5.13.4</junit-jupiter.version>
5454
<bucket4j.version>8.10.1</bucket4j.version>
5555
<bouncycastle.version>1.81</bouncycastle.version>
5656
<gson.version>2.13.1</gson.version>
57-
<jackson.version>2.19.1</jackson.version>
57+
<jackson.version>2.19.2</jackson.version>
5858
<jsr305.version>3.0.2</jsr305.version>
5959
<okhttp3.version>5.1.0</okhttp3.version>
6060
<swagger-core.version>1.6.16</swagger-core.version>
@@ -63,10 +63,10 @@
6363
<apache.commons.lang3.version>3.18.0</apache.commons.lang3.version>
6464
<apache.commons.collections4.version>4.5.0</apache.commons.collections4.version>
6565
<apache.commons.compress>1.27.1</apache.commons.compress>
66-
<apache.commons.io>2.19.0</apache.commons.io>
67-
<common.codec.version>1.18.0</common.codec.version>
68-
<spring.boot.version>3.5.3</spring.boot.version>
69-
<spring.version>6.2.8</spring.version>
66+
<apache.commons.io>2.20.0</apache.commons.io>
67+
<common.codec.version>1.19.0</common.codec.version>
68+
<spring.boot.version>3.5.4</spring.boot.version>
69+
<spring.version>6.2.9</spring.version>
7070
<prometheus.client.version>0.16.0</prometheus.client.version>
7171
<reflections.version>0.10.2</reflections.version>
7272

@@ -152,7 +152,7 @@
152152
<dependency>
153153
<groupId>software.amazon.awssdk</groupId>
154154
<artifactId>sts</artifactId>
155-
<version>2.32.0</version>
155+
<version>2.32.10</version>
156156
</dependency>
157157
<dependency>
158158
<groupId>com.google.protobuf</groupId>
@@ -348,7 +348,7 @@
348348
<plugin>
349349
<groupId>com.diffplug.spotless</groupId>
350350
<artifactId>spotless-maven-plugin</artifactId>
351-
<version>2.45.0</version>
351+
<version>2.46.1</version>
352352
</plugin>
353353
<plugin>
354354
<groupId>org.apache.felix</groupId>

util/src/main/java/io/kubernetes/client/util/ClientBuilder.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ public class ClientBuilder {
7373
// time to refresh exec based credentials
7474
// TODO: Read the expiration from the credential itself
7575
private Duration execCredentialRefreshPeriod = null;
76+
private ApiClient apiClient = null;
7677

7778
/**
7879
* Creates an {@link ApiClient} by calling {@link #standard()} and {@link #build()}.
@@ -435,8 +436,17 @@ public ClientBuilder setKeyStorePassphrase(String keyStorePassphrase) {
435436
return this;
436437
}
437438

439+
public ApiClient getApiClient() {
440+
return this.apiClient;
441+
}
442+
443+
public ClientBuilder setApiClient(ApiClient apiClient) {
444+
this.apiClient = apiClient;
445+
return this;
446+
}
447+
438448
public ApiClient build() {
439-
final ApiClient client = new ApiClient();
449+
final ApiClient client = this.apiClient == null ? new ApiClient() : this.apiClient;
440450

441451
client.setHttpClient(
442452
client

util/src/main/java/io/kubernetes/client/util/generic/GenericKubernetesApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ private CallBuilder makeClusterCreateCallBuilder(
707707
this.resourcePlural,
708708
object)
709709
.dryRun(createOptions.getDryRun())
710-
.dryRun(createOptions.getFieldManager())
710+
.fieldManager(createOptions.getFieldManager())
711711
.buildCall(null);
712712
}
713713

0 commit comments

Comments
 (0)