-
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
Changes from 9 commits
38d7665
3ce91d9
3cdc3c5
784d7ee
f3f62be
d7d38c3
7a9403b
271148b
ea9f42d
b8a307a
56fa10a
65303d6
651e292
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,10 @@ def _inject_proxy_network_configuration( | |
target_container_spec = service_spec["services"][target_container] | ||
container_networks = target_container_spec.get("networks", []) | ||
container_networks.append(dynamic_sidecar_network_name) | ||
target_container_spec["networks"] = container_networks | ||
# 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 commentThe 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 commentThe 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. |
||
|
||
|
||
class _environment_section: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more. 👍 |
||
|
||
@validator("LOG_LEVEL") | ||
@classmethod | ||
|
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.