-
Notifications
You must be signed in to change notification settings - Fork 27
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
🚑️ tuning down scheduler for dynamic sidecars #3025
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3025 +/- ##
=========================================
+ Coverage 66.5% 79.7% +13.2%
=========================================
Files 572 698 +126
Lines 22425 29221 +6796
Branches 2905 3756 +851
=========================================
+ Hits 14917 23297 +8380
+ Misses 6999 5086 -1913
- Partials 509 838 +329
Flags with carried forward coverage won't be shown. Click here to find out more.
|
# avoid duplicate entries, this is important when the dynamic-sidecar | ||
# fails to run docker-compose up, otherwise it will | ||
# continue adding lots of entries to this list | ||
target_container_spec["networks"] = list(set(container_networks)) |
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.
question, can't it just be a set instead of a list?
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.
No, it has to be a list inside the yaml that docker-compose up receives.
@@ -22,7 +22,7 @@ class DynamicSidecarSettings(BaseCustomSettings): | |||
) | |||
|
|||
# LOGGING | |||
LOG_LEVEL: str = Field("DEBUG") | |||
LOG_LEVEL: str = Field("WARNING") |
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.
👍
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.
thanks!
@@ -148,6 +148,9 @@ class DynamicSidecarProxySettings(BaseCustomSettings): | |||
|
|||
|
|||
class DynamicSidecarSettings(BaseCustomSettings): | |||
DYNAMIC_SIDECAR_LOG_LEVEL: str = Field( |
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: ..._LOG_LEVEL: Literal["DEBUG", "WARNING", "INFO", "ERROR"] = ...
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.
Apparently the literal is not working. Something about inheritance, it cannot be subclassed. As an alternative I've added a validator.
…core-forked into adding-log-level-dysdcr
Kudos, SonarCloud Quality Gate passed!
|
What do these changes do?
director-v2
will now startdynamic-sidecars
with log leve set toWARNING
, for developmentDEBUG
will still be setRelated issue/s
How to test
Checklist