-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NoClassDefFoundError io/fabric8/kubernetes/client/dsl/ServerSideApplicable #6570
Comments
You seem to be using an older version of the client (6.3.1). |
Hey @manusa, Yes we are using the springboot framework(3.0.19), java version 17. We were using groovy for unit tests before upgrading to these versions and couldn't mock the kubernetes-client. Thats when we started using the jupiter-junit and still could not mock the kubernetes-client. |
Are you using Spring Cloud Kubernetes too? |
We are not using Spring Cloud Kubernetes, and there are no other dependencies that import kubernetes-client |
Try to create a reproducer project then. |
Ok, will try that and get back to you. Thank you |
Describe the bug
Hello Team,
I am trying to use the @EnableKubernetesMockClient annotation to create a kubernetesClient in my test class which are in juupiter junit, but I am getting the following error.
NoClassDefFoundError io/fabric8/kubernetes/client/dsl/ServerSideApplicable
Fabric8 Kubernetes Client version
6.3.1
Steps to reproduce
import io.fabric8.kubernetes.client.KubernetesClient;
import io.fabric8.kubernetes.client.server.mock.EnableKubernetesMockClient;
import org.junit.jupiter.api.Test;
@EnableKubernetesMockClient
class MyTest {
KubernetesClient client;
##Code
}
Expected behavior
Would like to get a mocked value for kubernetsClient
Runtime
Kubernetes (vanilla)
Kubernetes API Server version
1.25.3@latest
Environment
Windows
Fabric8 Kubernetes Client Logs
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: