-
Notifications
You must be signed in to change notification settings - Fork 265
Added global overrides for OVN-Kubernetes #2851
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
base: master
Are you sure you want to change the base?
Conversation
So far, one can override log levels in specific nodes via `env-overrides` configmap. However, only specific nodes could be overridden, there was not a global override. This modifies `ovnkube-lib.sh` to allow specifying a `_global` node whose overrides are sourced in all nodes when present. If `_global` and node-specific keys are present in the configmap, values on the node-specific one should take precedence. This would be useful for scenarios where there is machine autoscaling, because you cannot know the node names in advance and manually maintain the `env-overrides` configmap if the node machines change automatically.
|
Skipping CI for Draft Pull Request. |
WalkthroughA global overrides sourcing block is added to the script library before node-specific overrides. The block conditionally sources Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro Cache: Disabled due to data retention organization setting Knowledge base: Disabled due to 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (1)**⚙️ CodeRabbit configuration file
Files:
🔇 Additional comments (1)
Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: palonsoro The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Tested on a 4.21 nightly. It works as expected:
So the PR should be ready for review. |
|
This PR would also address what is requested in RFE-8572 |
|
/retest-required |
|
/retest |
|
@palonsoro: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
The failed test complains about stuff not related to the PR. So @bpickard22 @pliurh not sure if you could please help me reviewing and getting this PR. Not in a rush, but it would help us troubleshooting if we could set this globally, specially in autoscaling scenarios (as exemplified in the RFE). Thanks in advance. |
|
The script |
|
Hi
I originally thought of nodes only, but it makes sense to include the control plane too. Let me update the control plane too.
Got it. I'll be doing it shortly. |
|
By the way, while reviewing this, I find it confusing that we still use So I see 2 alternatives:
Which one would you prefer? I'd definitely advocate for the latter. It is a bit of a wider change (maybe I should re-title the PR, then), but IMHO it makes much more sense to have the node-specific setting impact everything in the node, What do you think? |
|
@pliurh not sure if you could please comment on the above. Thanks. |
So far, one can override log levels in specific nodes via
env-overridesconfigmap. However, only specific nodes could be overridden, there was not a global override. This modifiesovnkube-lib.shto allow specifying a_globalnode whose overrides are sourced in all nodes when present. If_globaland node-specific keys are present in the configmap, values on the node-specific one should take precedence.This would be useful for scenarios where there is machine autoscaling, because you cannot know the node names in advance and manually maintain the
env-overridesconfigmap if the node machines change automatically.