Skip to content
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

No adapter available for type:interface io.fabric8.kubernetes.client.dsl.V1APIGroupDSL #2296

Closed
rohanKanojia opened this issue Jun 18, 2020 · 0 comments · Fixed by #2298
Closed
Assignees

Comments

@rohanKanojia
Copy link
Member

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)
rohanKanojia added a commit to rohanKanojia/kubernetes-client that referenced this issue Jun 18, 2020
rohanKanojia added a commit to rohanKanojia/kubernetes-client that referenced this issue Jun 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant