-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support running apply
and other commands with input from stdin
#28
Comments
Thanks for the suggestion. This is not unreasonable given that |
Yeah, for sure. And I didn't want to start a large refactor to support this without at least some communication. It's easy enough to write to disk as an intermediate solution. |
Cool! #26 is a lot easier to implement and I could see that helping in more situations, so I'll take a crack at that one soon. |
Just to add another bump for support here, another use case for us would be another tool which generated the configs that we could write to stdout and pass in to topicctl. Something like: I think the doors will open up for lots of possibilities if we can do this for us. |
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: