Skip to content

Commit

Permalink
wip: Bump kubernetes-client-bom from 5.12.2 to 6.0.0
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Nuri <marc@marcnuri.com>
  • Loading branch information
manusa committed Jul 11, 2022
1 parent b01ec42 commit 1b75a41
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion bom/application/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
<kotlin.version>1.6.21</kotlin.version>
<kotlin.coroutine.version>1.6.3</kotlin.coroutine.version>
<kotlin-serialization.version>1.3.3</kotlin-serialization.version>
<kubernetes-client.version>5.12.2</kubernetes-client.version> <!-- Please check with Java Operator SDK team before updating -->
<kubernetes-client.version>6.0.0-RC1</kubernetes-client.version> <!-- Please check with Java Operator SDK team before updating -->
<dekorate.version>2.11.0</dekorate.version> <!-- Please check with Java Operator SDK team before updating -->
<maven-invoker.version>3.2.0</maven-invoker.version>
<awaitility.version>4.2.0</awaitility.version>
Expand Down
10 changes: 7 additions & 3 deletions test-framework/kubernetes-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</dependency>
<dependency>
<groupId>io.fabric8</groupId>
<artifactId>kubernetes-server-mock</artifactId>
<artifactId>kubernetes-client-api</artifactId>
<exclusions>
<exclusion>
<groupId>javax.annotation</groupId>
Expand All @@ -38,11 +38,15 @@
<artifactId>jakarta.xml.bind-api</artifactId>
</exclusion>
<exclusion>
<groupId>io.sundr</groupId>
<artifactId>*</artifactId>
<groupId>io.sundr</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>io.fabric8</groupId>
<artifactId>kubernetes-server-mock</artifactId>
</dependency>
<dependency>
<groupId>jakarta.annotation</groupId>
<artifactId>jakarta.annotation-api</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import java.util.Map;

import io.fabric8.kubernetes.client.Config;
import io.fabric8.kubernetes.client.GenericKubernetesClient;
import io.fabric8.kubernetes.client.KubernetesClient;
import io.quarkus.test.common.QuarkusTestResourceLifecycleManager;

Expand All @@ -26,7 +25,7 @@ public Map<String, String> start() {
server = createServer();
initServer();

try (GenericKubernetesClient<?> client = getClient()) {
try (C client = getClient()) {
systemProps.put(Config.KUBERNETES_MASTER_SYSTEM_PROPERTY, client.getConfiguration().getMasterUrl());
}

Expand All @@ -40,7 +39,7 @@ public Map<String, String> start() {
return systemProps;
}

protected abstract GenericKubernetesClient<C> getClient();
protected abstract C getClient();

/**
* Can be used by subclasses in order to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import java.lang.annotation.Annotation;

import io.fabric8.kubernetes.client.GenericKubernetesClient;
import io.fabric8.kubernetes.client.NamespacedKubernetesClient;
import io.fabric8.kubernetes.client.server.mock.KubernetesMockServer;

Expand All @@ -14,7 +13,7 @@ public class KubernetesMockServerTestResource
extends AbstractKubernetesTestResource<KubernetesMockServer, NamespacedKubernetesClient> {

@Override
protected GenericKubernetesClient<NamespacedKubernetesClient> getClient() {
protected NamespacedKubernetesClient getClient() {
return server.createClient();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import java.util.Collections;
import java.util.function.Consumer;

import io.fabric8.kubernetes.client.GenericKubernetesClient;
import io.fabric8.kubernetes.client.NamespacedKubernetesClient;
import io.fabric8.kubernetes.client.server.mock.KubernetesServer;
import io.quarkus.test.common.QuarkusTestResourceConfigurableLifecycleManager;
Expand All @@ -32,7 +31,7 @@ public void init(WithKubernetesTestServer annotation) {
}

@Override
protected GenericKubernetesClient<NamespacedKubernetesClient> getClient() {
protected NamespacedKubernetesClient getClient() {
return server.getClient();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import java.lang.annotation.Annotation;
import java.util.function.Consumer;

import io.fabric8.kubernetes.client.GenericKubernetesClient;
import io.fabric8.openshift.client.NamespacedOpenShiftClient;
import io.fabric8.openshift.client.server.mock.OpenShiftServer;
import io.quarkus.test.common.QuarkusTestResourceConfigurableLifecycleManager;
Expand All @@ -27,7 +26,7 @@ public void init(WithOpenShiftTestServer annotation) {
}

@Override
protected GenericKubernetesClient<NamespacedOpenShiftClient> getClient() {
protected NamespacedOpenShiftClient getClient() {
return server.getOpenshiftClient();
}

Expand Down

0 comments on commit 1b75a41

Please sign in to comment.