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

VirtualService model not recognize status fields #136

Open
chestarss opened this issue Jun 7, 2021 · 0 comments
Open

VirtualService model not recognize status fields #136

chestarss opened this issue Jun 7, 2021 · 0 comments

Comments

@chestarss
Copy link

chestarss commented Jun 7, 2021

ApiVersion: 1.7.7

OpenShiftClient client = ocpService.getClient(cluster);
ObjectMapper yamlMapper = new ObjectMapper(new YAMLFactory());
List hasMetadata = client.load(new ByteArrayInputStream(yaml.getBytes())).fromServer().get();

com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "status" (class me.snowdrop.istio.api.networking.v1beta1.VirtualService), not marked as ignorable (4 known properties: "spec", "kind", "apiVersion", "metadata"])
at [Source: (BufferedInputStream); line: 1, column: 587] (through reference chain: me.snowdrop.istio.api.networking.v1beta1.VirtualService["status"])
at com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException.from(UnrecognizedPropertyException.java:61)
at com.fasterxml.jackson.databind.DeserializationContext.handleUnknownProperty(DeserializationContext.java:855)
at com.fasterxml.jackson.databind.deser.std.StdDeserializer.handleUnknownProperty(StdDeserializer.java:1212)
at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.handleUnknownProperty(BeanDeserializerBase.java:1604)
at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.handleUnknownVanilla(BeanDeserializerBase.java:1582)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:299)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:156)
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4524)
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3511)
at io.fabric8.kubernetes.client.utils.Serialization.unmarshal(Serialization.java:246)

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

1 participant