snowdrop / istio-java-api

A Java API to generate Istio descriptors, inspired by Fabric8's kubernetes-model.
Apache License 2.0
112 stars 33 forks source link

istio virtualService getDoneableType is null #134

Open chestarss opened 3 years ago

chestarss commented 3 years ago

String yaml = "---\n"

client.load(new ByteArrayInputStream(yaml.getBytes())).inNamespace("dian-stable").createOrReplace();

java.lang.NullPointerException at io.fabric8.kubernetes.client.dsl.base.HasMetadataOperation.replace(HasMetadataOperation.java:86) at io.fabric8.kubernetes.client.dsl.base.HasMetadataOperation.replace(HasMetadataOperation.java:30) at me.snowdrop.istio.client.internal.handler.networking.v1beta1.VirtualServiceHandler.replace(VirtualServiceHandler.java:42) at me.snowdrop.istio.client.internal.handler.networking.v1beta1.VirtualServiceHandler.replace(VirtualServiceHandler.java:23) at io.fabric8.kubernetes.client.dsl.internal.NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicableListImpl.createOrReplace(NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicableListImpl.java:285) at io.fabric8.kubernetes.client.dsl.internal.NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicableListImpl.createOrReplace(NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicableListImpl.java:66)

metacosm commented 3 years ago

Which version of the API are you using?

chestarss commented 3 years ago

1.7.7