Skip to content
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

feat: supports k8s cluster #3599

Merged
merged 24 commits into from
Feb 10, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixes errors
  • Loading branch information
amir20 committed Feb 10, 2025
commit e90e65416500abafc1f6e3a1e2d03ad52e614e90
4 changes: 2 additions & 2 deletions internal/container/container_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ func (s *ContainerStore) ListContainers(labels ContainerLabels) ([]Container, er
}

containers := make([]Container, 0)
if filter.Exists() {
validContainers, err := s.client.ListContainers(s.ctx, filter)
if labels.Exists() {
validContainers, err := s.client.ListContainers(s.ctx, labels)
if err != nil {
return nil, err
}
Expand Down
156 changes: 0 additions & 156 deletions internal/container/stats_collector.go

This file was deleted.

2 changes: 1 addition & 1 deletion internal/docker/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func NewClient(cli DockerCLI, host container.Host) *DockerClient {
}

// NewClientWithFilters creates a new instance of Client with docker filters
func NewLocalClient(hostname string) (container.Client, error) {
func NewLocalClient(hostname string) (*DockerClient, error) {
cli, err := client.NewClientWithOpts(client.FromEnv, client.WithAPIVersionNegotiation(), client.WithUserAgent("Docker-Client/Dozzle"))

if err != nil {
Expand Down