Closed RobinGoussey closed 3 years ago
Hi @RobinGoussey, thanks for the detailed report! You're receiving a null pointer exception as this isn't valid yaml (per the parser kafka-gitops is using, at least. It may be transforming it to an array instead of an object):
topics:
test:
That probably needs a better error message. It would need to be structured as:
topics:
test: {}
With this fix, if you run it, you'll get the following error message:
[INVALID] Not set: [partitions] in state file definition: topics -> test
We currently only support setting a default replication factor, and do not support defaulting partitions / configs, as it says in the specifications page of the docs:
defaults [Optional]: Specify topic defaults so you don’t need to specify them for every topic in the state file. Currently, only replication is supported.
I hope that helps! If setting defaults such as partitions and topic configs is desired, we can open an enhancement issue to look into that for the future. :-)
Hi @devshawn, I think all settings should be able to be defaulted, as this would make a default template possible, and only the topic names as a list of topics. So an enhancement would be nice :)
We can open a new issue for the enhancement 👍
Hi, I tried running the docker (through docker compose), and I received a nullpointer exception without explenation. I don't really know if it can be seen as a bug, or missing error message. Basically if I just fill in the name of the topic, and rely on defaults, it gives a nullpointer exception.
I tried to create topics, but with all settings in default, and I got a nullpointer exception. Command:
docker-compose:
my desired state: