Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@

<junit.version>5.10.2</junit.version>
<fabric8-client.version>7.1.0</fabric8-client.version>
<slf4j.version>1.7.36</slf4j.version>
<slf4j.version>2.0.12</slf4j.version>
<log4j.version>2.24.3</log4j.version>
<mokito.version>5.15.2</mokito.version>
<commons-lang3.version>3.12.0</commons-lang3.version>
Expand Down Expand Up @@ -122,7 +122,6 @@
<artifactId>log4j-core</artifactId>
<version>${log4j.version}</version>
</dependency>

</dependencies>
</dependencyManagement>
<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
import java.util.function.Supplier;

import org.junit.jupiter.api.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import io.fabric8.kubernetes.api.model.ObjectMetaBuilder;
import io.fabric8.kubernetes.client.ConfigBuilder;
import io.fabric8.kubernetes.client.KubernetesClient;
import io.fabric8.kubernetes.client.KubernetesClientBuilder;
import io.fabric8.kubernetes.client.KubernetesClientException;
Expand All @@ -25,7 +28,10 @@
@SuppressWarnings("deprecation")
public abstract class AbstractEndToEndTest {

protected KubernetesClient client = new KubernetesClientBuilder().build();
private static final Logger log = LoggerFactory.getLogger(AbstractEndToEndTest.class);

protected KubernetesClient client = new KubernetesClientBuilder().withConfig(new ConfigBuilder()
.withNamespace("default").build()).build();

public static final String TEST_CR_NAME = "test-cr";
public static final int CR_SPEC_VALUE = 5;
Expand Down Expand Up @@ -80,6 +86,7 @@ <T> T avoidRequestTimeout(Supplier<T> operator) {
try {
return operator.get();
} catch (KubernetesClientException e) {
log.warn("Applying resource. This might be expected.", e);
return null;
}
}
Expand Down
Loading