migrate file monitor to krt#55970
Conversation
808d538 to
fd1a2b4
Compare
|
|
||
| // Defer starting the file monitor until after the service is created. | ||
| s.addStartFunc("file monitor", func(stop <-chan struct{}) error { | ||
| fileMonitor.Start(stop) |
There was a problem hiding this comment.
previously this controller would only start monitoring files when the server actually started, we are losing this with the new implementation (KRT implementation does not allow for a delayed start), but we could delay the creation of collections if it's necessary.
howardjohn
left a comment
There was a problem hiding this comment.
Nice! only had a chance to give it a brief look but looking good
06c7225 to
2882dc1
Compare
6ae1d0d to
06a9bcc
Compare
06a9bcc to
b402846
Compare
|
@howardjohn could you give this another look? I've made some changes to only use a single |
stevenctl
left a comment
There was a problem hiding this comment.
LGTM but have 1 question
|
@howardjohn could you give this another look please? |
howardjohn
left a comment
There was a problem hiding this comment.
🔥
Sorry lost track of this one
* migrate file monitor to krt * implment get & list by namespace * fixes and tests * fix event handling * fix file controller test * use single FileCollection for efficiency
* upstream/master: (28 commits) Automator: update common-files@master in istio/istio@master (istio#56545) Automator: update proxy@master in istio/istio@master (istio#56544) Automator: update go-control-plane in istio/istio@master (istio#56543) Automator: update proxy@master in istio/istio@master (istio#56540) Automator: update ztunnel@master in istio/istio@master (istio#56532) Ambient: In ambient index, filter configs by revision (istio#56477) Automator: update istio/client-go@master dependency in istio/istio@master (istio#56539) Automator: update proxy@master in istio/istio@master (istio#56538) Automator: update common-files@master in istio/istio@master (istio#56537) optimization: allow for lazy sidecar initialization (istio#47221) static collection eager indexes (istio#56530) fix typo in flag (istio#56534) feat: enable support for proxy protocol on status port (istio#55986) remove finding of pods by IP (istio#56502) Automator: update proxy@master in istio/istio@master (istio#56528) migrate file monitor to krt (istio#55970) Automator: update istio/client-go@master dependency in istio/istio@master (istio#56525) Automator: update ztunnel@master in istio/istio@master (istio#56518) Fix crash in merging http routes (istio#56499) krt: add assertions (istio#56510) ...
Please provide a description of this PR:
Migrated file monitor based config controller to KRT, taking advantage of #55337
This allows deleting the old file monitor implmentation, reducing the amount of code to maintain.