Skip to content

Commit

Permalink
chore (deps) : Update Fabric8 Kubernetes Client to v6.13.2
Browse files Browse the repository at this point in the history
Signed-off-by: Rohan Kumar <[email protected]>
  • Loading branch information
rohanKanojia committed Aug 13, 2024
1 parent fe4a246 commit bc6cbe9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kubernetes-client-demo-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<maven-surefire-plugin.version>3.0.0-M7</maven-surefire-plugin.version>
<maven-failsafe-plugin.version>3.0.0-M7</maven-failsafe-plugin.version>
<junit.version>5.9.1</junit.version>
<fabric8.version>6.13.0</fabric8.version>
<fabric8.version>6.13.2</fabric8.version>
</properties>

<modules>
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/io/fabric8/CustomConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@

public class CustomConfig {
public static void main(String[] args) {
int max = 512;
System.setProperty("kubernetes.disable.autoConfig", "true");
Config config = new ConfigBuilder()
Config config = new ConfigBuilder(Config.autoConfigure(null))
.withMaxConcurrentRequests(max )
.build();
try (KubernetesClient client = new KubernetesClientBuilder().withConfig(config).build()) {
client.pods().list();
Expand Down

0 comments on commit bc6cbe9

Please sign in to comment.