From e08d883c1d272b8e1c38d8d510e0592717808aa0 Mon Sep 17 00:00:00 2001 From: Benjamin Graf Date: Fri, 8 Mar 2024 19:11:20 +0100 Subject: [PATCH] Replace deprecated API usage --- .../StatefulsetRecoveryControllerAutoConfiguration.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openshift/recovery-controller/src/main/java/dev/snowdrop/boot/narayana/openshift/recovery/StatefulsetRecoveryControllerAutoConfiguration.java b/openshift/recovery-controller/src/main/java/dev/snowdrop/boot/narayana/openshift/recovery/StatefulsetRecoveryControllerAutoConfiguration.java index e49641f3..2ef818b2 100644 --- a/openshift/recovery-controller/src/main/java/dev/snowdrop/boot/narayana/openshift/recovery/StatefulsetRecoveryControllerAutoConfiguration.java +++ b/openshift/recovery-controller/src/main/java/dev/snowdrop/boot/narayana/openshift/recovery/StatefulsetRecoveryControllerAutoConfiguration.java @@ -17,7 +17,7 @@ package dev.snowdrop.boot.narayana.openshift.recovery; import io.fabric8.kubernetes.client.KubernetesClient; -import io.fabric8.openshift.client.DefaultOpenShiftClient; +import io.fabric8.kubernetes.client.KubernetesClientBuilder; import org.springframework.boot.autoconfigure.AutoConfiguration; import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; @@ -45,7 +45,7 @@ public PodStatusManager podStatusManager(StatefulsetRecoveryControllerProperties @Bean(destroyMethod = "close") @ConditionalOnMissingBean(KubernetesClient.class) public KubernetesClient kubernetesClient() { - return new DefaultOpenShiftClient(); + return new KubernetesClientBuilder().build(); } @Bean