-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Support multiple docker socket #2471
Open
loopback-kr
wants to merge
6
commits into
nicolargo:develop
Choose a base branch
from
loopback-kr:feature/support_context
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
4d6052e
Add TODO
loopback-kr bfc90de
Implement multi clients
loopback-kr f26668d
Glances can receive multiple docker host urls
loopback-kr 2bdc252
Add docker_sock
loopback-kr 00cd27f
Fixed unix url format
loopback-kr 72cfaf7
Add Socket URL to stats
loopback-kr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next
Next commit
Add TODO
- Loading branch information
commit 4d6052e79e3b70bf1307b97934811e8fdef6ec77
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,7 +70,7 @@ def __init__(self, args=None, config=None): | |
self.args = args | ||
|
||
# Default config keys | ||
self.config = config | ||
self.config = config # TODO: need to debug this point | ||
|
||
# We want to display the stat in the curse interface | ||
self.display_curse = True | ||
|
@@ -82,7 +82,7 @@ def __init__(self, args=None, config=None): | |
if import_podman_error_tag: | ||
self.podman_client = None | ||
else: | ||
self.podman_client = PodmanContainersExtension(podman_sock=self._podman_sock()) | ||
self.podman_client = PodmanContainersExtension(podman_sock=self._podman_sock()) # TODO: podman also | ||
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. IS it also possible to have multiple socket for Podman ? 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. @nicolargo |
||
|
||
# Sort key | ||
self.sort_key = None | ||
|
@@ -157,7 +157,7 @@ def update(self): | |
|
||
if self.input_method == 'local': | ||
# Update stats | ||
stats_docker = self.update_docker() if self.docker_extension else {} | ||
stats_docker = self.update_docker() if self.docker_extension else {} # TODO: need to concat all docker client | ||
stats_podman = self.update_podman() if self.podman_client else {} | ||
stats = { | ||
'version': stats_docker.get('version', {}), | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
test if base_urls is empty then use from_env() else use the base_urls list instead