From 136012cb11b643fa20a49539de372f0efc670de0 Mon Sep 17 00:00:00 2001 From: acrylic-style Date: Fri, 16 Aug 2024 22:52:37 +0900 Subject: [PATCH] Update kubernetes-client to v6 --- pom.xml | 10 ++++++++-- src/main/java/net/azisaba/kuvel/Kuvel.java | 5 +++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index 45990f2d..c41a8f6a 100644 --- a/pom.xml +++ b/pom.xml @@ -77,10 +77,16 @@ 3.1.1 provided + + io.fabric8 + kubernetes-client-api + 6.13.3 + io.fabric8 kubernetes-client - 5.12.4 + 6.13.3 + runtime redis.clients @@ -99,4 +105,4 @@ provided - \ No newline at end of file + diff --git a/src/main/java/net/azisaba/kuvel/Kuvel.java b/src/main/java/net/azisaba/kuvel/Kuvel.java index 49dc1c54..629def60 100644 --- a/src/main/java/net/azisaba/kuvel/Kuvel.java +++ b/src/main/java/net/azisaba/kuvel/Kuvel.java @@ -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; @@ -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 {