You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While working on #2294 , I noticed that client.v1() DSL is not working in the case of OpenShift client. Here is a code sample:
try (OpenShiftClient client = new DefaultOpenShiftClient()) {
client.v1().events().inNamespace("rokumar").list();
client.v1().podTemplates().inNamespace("rokumar").list();
}
Expected Behavior:
The client should list all Event and PodTemplate resources in specified namespace
Actual Behavior:
Getting this error:
Exception in thread "main" java.lang.IllegalStateException: No adapter available for type:interface io.fabric8.kubernetes.client.dsl.V1APIGroupDSL
at io.fabric8.kubernetes.client.BaseClient.adapt(BaseClient.java:130)
at io.fabric8.openshift.client.DefaultOpenShiftClient.v1(DefaultOpenShiftClient.java:501)
The text was updated successfully, but these errors were encountered:
rohanKanojia
added a commit
to rohanKanojia/kubernetes-client
that referenced
this issue
Jun 18, 2020
While working on #2294 , I noticed that
client.v1()
DSL is not working in the case of OpenShift client. Here is a code sample:Expected Behavior:
The client should list all
Event
andPodTemplate
resources in specified namespaceActual Behavior:
Getting this error:
The text was updated successfully, but these errors were encountered: