Skip to content
This repository has been archived by the owner on Mar 30, 2022. It is now read-only.

istio virtualService getDoneableType is null #134

Open
chestarss opened this issue Apr 15, 2021 · 2 comments
Open

istio virtualService getDoneableType is null #134

chestarss opened this issue Apr 15, 2021 · 2 comments

Comments

@chestarss
Copy link

String yaml = "---\n"
+ "apiVersion: "networking.istio.io/v1beta1"\n"
+ "kind: "VirtualService"\n"
+ "metadata:\n"
+ " name: "golang-demo"\n"
+ " namespace: "dian-stable"\n"
+ "spec:\n"
+ " hosts:\n"
+ " - "golang-demo"\n"
+ " http:\n"
+ " - route:\n"
+ " - destination:\n"
+ " host: "golang-demo"\n"
+ " subset: "v1"\n"
+ " weight: 60\n"
+ " - destination:\n"
+ " host: "golang-demo"\n"
+ " subset: "v2"\n"
+ " weight: 40";

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
Copy link
Member

metacosm commented Jun 4, 2021

Which version of the API are you using?

@chestarss
Copy link
Author

1.7.7

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants