-
Notifications
You must be signed in to change notification settings - Fork 407
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
RFC: deprecate and remove Watch Mode #412
Comments
This seems funny to me. If On the other hand, I think I like the future stuff. It is pretty nice for streaming support ( |
Honestly I'm fine with just removing it, I just want to give people an opportunity to tell us why they think it's load-bearing for them, if it is. I'm not sure I can think of a case where we wouldn't be able to just buffer all of stdin then process it all non-streamily -- it's one YAML Michael, how much of it could there be, 10 MB? But you're right, it's easy enough to support today so why not. |
This is obviously contrived, but imagine you have a service on your cluster that streams any yaml documents containing out of date images on that cluster and doesn't close the request until the images have been updated. 😄 |
🙃 |
Do it, it doesn't work well enough on macOS, so I haven't used it since I left Google, and I'm not sure I ever tested it after some of Jon's go module changes. |
This issue is stale because it has been open for 90 days with no |
We still haven't removed Watch Mode. fsnotify, which we depend on for watch mode, is in need of maintainers, and if some aren't identified soon the repo will be archived: fsnotify/fsnotify#413 |
Watch Mode (i.e,
ko apply --watch
) was added about 2 1/2 years ago, in the old ggcr repo, in google/go-containerregistry#336.We don't collect usage metrics, but based on recommended/documented usage in projects that I know of that use
ko
, none use watch mode today. It was marked as EXPERIMENTAL from the beginning, and documentation for it was apparently accidentally removed from the README six months ago in #318 😞.Watch Mode adds quite a bit of complexity to what is otherwise a relatively straightforward transformation on inputs. It involves implementing non-standard concurrency primitives like
Future
s. It's not well tested, and not currently easily test-able. It might make future improvements to outputs like #406 andko extract
more difficult, or simply incompatible with watch mode.With support for watching and re-building images with
ko
available through Skaffold (today unofficially; in the future, officially), and upcoming improvements to speed up no-op builds (#267 #269) I think we should consider deprecating and eventually removing watch mode fromko
, simplifying the codebase and focusing efforts on better release management integration and security best practices.If we decide to proceed, we can start by adding a warning linking this issue when using
--watch
, to collect any feedback that might encourage us to reconsider deprecating. If we do decide to keep it, we should invest more in documentation and testing, and promote it out of an undocumented experiment.wdyt @mattmoor @jonjohnsonjr
The text was updated successfully, but these errors were encountered: