[BUG] Complex provider specific config causes gRPC init call to fail #501
Labels
kind/bug
Categorizes issue or PR as related to a bug.
priority/backlog
Higher priority than priority/awaiting-more-evidence.
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
Milestone
Is there an existing issue for this?
Konveyor version
latest
Priority
Undefined (Default)
Current Behavior
Attempting to initialize a provider with complex nested provider specific config results in a protobuf serialization failure:
In this example, it's choking on the
groupVersionKinds
field. I think the proximate cause is something to do with the exact representation the decoder is choosing for the contents ofproviderSpecificConfig
; since it's specified as amap[string]interface{}
the decoder has plenty of options. I experimented by changing theyaml.Unmarshal
call inprovider/provider.go
to unmarshal withjson.Unmarshal
fromencoding/json
, and that worked, so one representation seems to be acceptable to protobuf and one isn't.Expected Behavior
The provider specific config is serialized to proto and transmitted across the gRPC interface successfully.
How Reproducible
Always
Steps To Reproduce
Attempt to initialize a provider with deeply nested providerSpecificConfig.
The text was updated successfully, but these errors were encountered: