Skip to content

Commit

Permalink
Update kubernetes-client to v6
Browse files Browse the repository at this point in the history
  • Loading branch information
acrylic-style committed Aug 16, 2024
1 parent 6dab206 commit 136012c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
10 changes: 8 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,16 @@
<version>3.1.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>io.fabric8</groupId>
<artifactId>kubernetes-client-api</artifactId>
<version>6.13.3</version>
</dependency>
<dependency>
<groupId>io.fabric8</groupId>
<artifactId>kubernetes-client</artifactId>
<version>5.12.4</version>
<version>6.13.3</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>redis.clients</groupId>
Expand All @@ -99,4 +105,4 @@
<scope>provided</scope>
</dependency>
</dependencies>
</project>
</project>
5 changes: 3 additions & 2 deletions src/main/java/net/azisaba/kuvel/Kuvel.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@
import com.velocitypowered.api.plugin.Plugin;
import com.velocitypowered.api.plugin.annotation.DataDirectory;
import com.velocitypowered.api.proxy.ProxyServer;
import io.fabric8.kubernetes.client.DefaultKubernetesClient;
import io.fabric8.kubernetes.client.KubernetesClient;

import java.io.File;
import java.nio.file.Path;
import java.util.Objects;
import java.util.concurrent.TimeUnit;

import io.fabric8.kubernetes.client.KubernetesClientBuilder;
import lombok.Getter;
import net.azisaba.kuvel.config.KuvelConfig;
import net.azisaba.kuvel.discovery.impl.redis.RedisLoadBalancerDiscovery;
Expand Down Expand Up @@ -57,7 +58,7 @@ public Kuvel(ProxyServer server, Logger logger, @DataDirectory Path dataDirector

@Subscribe
public void onProxyInitialization(ProxyInitializeEvent event) {
client = new DefaultKubernetesClient();
client = new KubernetesClientBuilder().build();

kuvelConfig = new KuvelConfig(this);
try {
Expand Down

0 comments on commit 136012c

Please # to comment.