Support running apply
and other commands with input from stdin
#28
Labels
enhancement
New feature or request
apply
and other commands with input from stdin
#28
I'm working towards building something that leverages
topicctl
for our kafka cluster in kubernetes, and with this, my plan is to have a simple wrapper around topicctl that listened to a Kubernetes ConfigMap containing cluster configs. On ConfigMap changes, it'd apply to the cluster.To better support that, it'd be nice to be able to pass everything through stdin. I looked briefly at code thinking it'd be simple, but there are some assumptions made with file system layout (discovering cluster config.yaml) and not handling multiple documents (#26).
I think ideally, it'd be nice to pass one big document through stdin that contained the cluster config as well as the topics through stdin. Then our loop in Kubernetes will be:
Am I just off base on wanting to use
topicctl
in this manner? It seems like a pretty obvious thing for us to do. We can work around the issues by having another intermediate step where we write all the configs to disk first, then calltopicctl apply topics/*yml
or whatever, but is an unnecessary step if we can pass through stdin.Let me know your thoughts, we haven't started building anything for this yet, just brainstorming.
The text was updated successfully, but these errors were encountered: