-
Notifications
You must be signed in to change notification settings - Fork 0
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
Move the watcher cli application to be a go routine #12
Move the watcher cli application to be a go routine #12
Conversation
Signed-off-by: Israel Blancas <iblancasa@gmail.com>
main.go
Outdated
return err | ||
} | ||
|
||
disableReconciliation := os.Getenv("DISABLE_RECONCILIATION") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this can be a CLI option. I think this can be interesting to do for testing reasons.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you run into a use-case where you needed this feature? If we keep it I would change it to DISABLE_WATCHER_CONTROLLER
. I'm fine with moving it to CLI option if we want to keep it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor nits
main.go
Outdated
return err | ||
} | ||
|
||
disableReconciliation := os.Getenv("DISABLE_RECONCILIATION") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you run into a use-case where you needed this feature? If we keep it I would change it to DISABLE_WATCHER_CONTROLLER
. I'm fine with moving it to CLI option if we want to keep it
For testing, for instance. |
Co-authored-by: Joao Marcal <joao.marcal12@gmail.com>
Co-authored-by: Joao Marcal <joao.marcal12@gmail.com>
Co-authored-by: Joao Marcal <joao.marcal12@gmail.com>
Co-authored-by: Joao Marcal <joao.marcal12@gmail.com>
Signed-off-by: Israel Blancas <iblancasa@gmail.com>
@JoaoBraveCoding added your changes. I think we are ready to merge. |
* feat: addd controller to watch configuration resources * feat: adds controller to annotate ManifestWork * fix: add missing schemas * feat: adds new event handler for cluster wide resources * chore: improves triggers on clusterwideresources * chore: improve enqueueForClusterWideResource function * Add OpenTelemetryCollector resource to the reconciliation Signed-off-by: Israel Blancas <iblancasa@gmail.com> * Revert "Add OpenTelemetryCollector resource to the reconciliation" This reverts commit 0e9894e. * Move the watcher cli application to be a go routine (#12) * Move the watcher cli application to be a go routine Signed-off-by: Israel Blancas <iblancasa@gmail.com> * Fix lint Signed-off-by: Israel Blancas <iblancasa@gmail.com> * Fix lint Signed-off-by: Israel Blancas <iblancasa@gmail.com> * Update internal/controllers/watcher/controller.go Co-authored-by: Joao Marcal <joao.marcal12@gmail.com> * Update internal/controllers/watcher/controller.go Co-authored-by: Joao Marcal <joao.marcal12@gmail.com> * Update main.go Co-authored-by: Joao Marcal <joao.marcal12@gmail.com> * Update main.go Co-authored-by: Joao Marcal <joao.marcal12@gmail.com> * Add suggestion Signed-off-by: Israel Blancas <iblancasa@gmail.com> --------- Signed-off-by: Israel Blancas <iblancasa@gmail.com> Co-authored-by: Joao Marcal <joao.marcal12@gmail.com> * Move to use addon-framework Trigger function (#13) Signed-off-by: Israel Blancas <iblancasa@gmail.com> * revert unrelated changes * * Remove ConfigMaps from reconciliation. * If a secret is updated, check if there is any reference to it in any of the ManifestWorks * Change some comments Signed-off-by: Israel Blancas <iblancasa@gmail.com> * Add changes requested in code review Signed-off-by: Israel Blancas <iblancasa@gmail.com> * Change comment * address small review comments --------- Signed-off-by: Israel Blancas <iblancasa@gmail.com> Co-authored-by: Israel Blancas <iblancasa@gmail.com>
This PR moves the
watcher
CLI application to be a goroutine.We were discussing this change to avoid the need to create another image as a product.