Skip to content

Commit

Permalink
Replace deprecated API usage
Browse files Browse the repository at this point in the history
  • Loading branch information
graben authored and iocanel committed Mar 21, 2024
1 parent 5b13e11 commit ca0ee3d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ca0ee3d

Please sign in to comment.