Skip to content

Add NOOBAA_LOG_LEVEL to the agent pod#1407

Merged
liranmauda merged 1 commit intonoobaa:masterfrom
liranmauda:add-NOOBAA_LOG_LEVEL-to-agents-pod
Aug 11, 2024
Merged

Add NOOBAA_LOG_LEVEL to the agent pod#1407
liranmauda merged 1 commit intonoobaa:masterfrom
liranmauda:add-NOOBAA_LOG_LEVEL-to-agents-pod

Conversation

@liranmauda
Copy link
Contributor

@liranmauda liranmauda commented Aug 11, 2024

Explain the changes

  • Add NOOBAA_LOG_LEVEL to the agent pod
  • Watching for changes in the noobaa-config on the backingstore reconciler
  • Updating the NOOBAA_LOG_LEVEL according to the config map

Fixes:

@liranmauda liranmauda force-pushed the add-NOOBAA_LOG_LEVEL-to-agents-pod branch from cd27ac2 to 8772449 Compare August 11, 2024 10:34
if err != nil {
return err
}
err = c.Watch(source.Kind(mgr.GetCache(), &corev1.ConfigMap{}), ownerHandler, &filterForNoobaaOwnerPredicate, &logEventsPredicate)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wouldn't this will run all backingstores in case of change in the config map? can we run somehow only the pvpool type?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will only happen when the configmap noobaa-config will change, which is not a lot.
in that case the reconcile will trigger, but the actual change is only on the reconcile of the PV pool.

- Add NOOBAA_LOG_LEVEL to the agent pod
- Watching for changes in the noobaa-config on the backingstore reconciler
- Updating the NOOBAA_LOG_LEVEL according to the config map

Signed-off-by: liranmauda <liran.mauda@gmail.com>
@liranmauda liranmauda force-pushed the add-NOOBAA_LOG_LEVEL-to-agents-pod branch from 8772449 to ec773dc Compare August 11, 2024 11:44
@liranmauda liranmauda requested a review from jackyalbo August 11, 2024 11:46
@liranmauda liranmauda merged commit 99b9c05 into noobaa:master Aug 11, 2024
@liranmauda liranmauda deleted the add-NOOBAA_LOG_LEVEL-to-agents-pod branch August 12, 2024 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants