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
The following call with a config file of kind: Deployment causes an exception:
KubernetesClient client = new DefaultKubernetesClient();
List<HasMetadata> deploymentList = client.load(getFileInputString("deployment.yml")).inNamespace("mynamespace").fromServer().get();
Exception in thread "main" java.lang.ClassCastException: io.fabric8.kubernetes.api.model.extensions.DeploymentBuilder cannot be cast to io.fabric8.kubernetes.client.HasMetadataVisitiableBuilder
at io.fabric8.kubernetes.client.dsl.internal.NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicableListImpl.get(NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicableListImpl.java:270)
at io.fabric8.kubernetes.client.dsl.internal.NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicableListImpl.get(NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicableListImpl.java:66)
I'm using kubernetes-client: 2.5.2 which pulls kubernetes-model: 1.0.78
I'm not sure if this is an issue in the kubernetes-client project or the kubernetes-model project.
Seems like io.fabric8.kubernetes.api.model.extensions.DeploymentBuilder is supposed to be implementing io.fabric8.kubernetes.client.HasMetadataVisitiableBuilder
The text was updated successfully, but these errors were encountered:
This issue still persists for kubernetes-client:3.1.11 with kubernetes-model:2.0.9. For a similar operation as shown by @kkucera for a ConfigMap, I get:
java.lang.ClassCastException: io.fabric8.kubernetes.api.model.ConfigMapBuilder cannot be cast to io.fabric8.kubernetes.client.HasMetadataVisitiableBuilder
at io.fabric8.kubernetes.client.dsl.internal.NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicableImpl.get(NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicableImpl.java:173)
at io.fabric8.kubernetes.client.dsl.internal.NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicableImpl.get(NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicableImpl.java:59)
Any plans to fix this soon?
izhigalko
pushed a commit
to izhigalko/kubernetes-client
that referenced
this issue
Mar 14, 2019
The following call with a config file of kind: Deployment causes an exception:
I'm using kubernetes-client: 2.5.2 which pulls kubernetes-model: 1.0.78
I'm not sure if this is an issue in the kubernetes-client project or the kubernetes-model project.
Seems like
io.fabric8.kubernetes.api.model.extensions.DeploymentBuilder
is supposed to be implementingio.fabric8.kubernetes.client.HasMetadataVisitiableBuilder
The text was updated successfully, but these errors were encountered: