Man, I almost just want to host CQ and re-write the plugin in Go, tbh. But I’ll mess with getting the Python plugin to run in the meantime. We can chat Wednesday about it.
Hey, so I was able to get this to work. I run a job with two containers, the custom plugin and CloudQuery. When I run the job, I see my custom tables successfully created in the PG destination database. However, I can’t get much information from the plugin logs in terms of why they are failing to sync data.
kubectl logs -n censusv3 -f censusv3-cloudquery-yellowpages-rrg9s
Defaulted container "cq-yellowpages" out of: cq-yellowpages, cloudquery, vault-provisioner (init)
{"address": "[::]:7777", "event": "Starting server", "level": "info", "timestamp": "2024-03-07T16:40:48Z"}
{"client_id": "yellowpages", "table": "yp_aws_accounts", "depth": 0, "event": "table resolver started", "level": "info", "timestamp": "2024-03-07T16:40:51Z"}
{"client_id": "yellowpages", "table": "yp_aws_accounts", "resources": 0, "depth": 0, "exc_info": true, "event": "table resolver finished with error", "level": "error", "timestamp": "2024-03-07T16:40:51Z"}
{"client_id": "yellowpages", "table": "yp_services", "depth": 0, "event": "table resolver started", "level": "info", "timestamp": "2024-03-07T16:40:51Z"}
{"client_id": "yellowpages", "table": "yp_teams", "depth": 0, "event": "table resolver started", "level": "info", "timestamp": "2024-03-07T16:40:51Z"}
{"client_id": "yellowpages", "table": "yp_services", "resources": 0, "depth": 0, "exc_info": true, "event": "table resolver finished with error", "level": "error", "timestamp": "2024-03-07T16:40:51Z"}
{"client_id": "yellowpages", "table": "yp_teams", "resources": 0, "depth": 0, "exc_info": true, "event": "table resolver finished with error", "level": "error", "timestamp": "2024-03-07T16:40:51Z"}
As you can see, we have an init container (vault) and the two main sidecar containers. The sync is initiated, but they are erroring, and I would like to capture print statements from my plugin to debug whether it’s a connection issue or something else.
Oh wait, I probably need to use the logger. Yeah, that didn’t work either. <:sad:895405990764224512>