Skip to content

Commit

Permalink
implement ListPodSandboxMetrics
Browse files Browse the repository at this point in the history
Signed-off-by: Akhil Mohan <[email protected]>
  • Loading branch information
akhilerm committed Sep 10, 2024
1 parent 6b04c9d commit 2981bb8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion internal/cri/server/list_pod_sandbox_metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,10 @@ import (
)

func (c *criService) ListPodSandboxMetrics(context.Context, *runtime.ListPodSandboxMetricsRequest) (*runtime.ListPodSandboxMetricsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListPodSandboxMetrics not implemented")
sandboxList := c.sandboxStore.List()
metricsList := c.sandboxStore.

return &runtime.ListPodSandboxMetricsResponse{

Check failure on line 31 in internal/cri/server/list_pod_sandbox_metrics.go

View workflow job for this annotation

GitHub Actions / CodeQL-Build

syntax error: unexpected return, expected name or (

Check failure on line 31 in internal/cri/server/list_pod_sandbox_metrics.go

View workflow job for this annotation

GitHub Actions / Linters (ubuntu-24.04)

syntax error: unexpected return, expected name or (

Check failure on line 31 in internal/cri/server/list_pod_sandbox_metrics.go

View workflow job for this annotation

GitHub Actions / Linters (ubuntu-24.04)

syntax error: unexpected return, expected name or (

Check failure on line 31 in internal/cri/server/list_pod_sandbox_metrics.go

View workflow job for this annotation

GitHub Actions / Linters (ubuntu-24.04)

syntax error: unexpected return, expected name or (

Check failure on line 31 in internal/cri/server/list_pod_sandbox_metrics.go

View workflow job for this annotation

GitHub Actions / Linters (ubuntu-24.04)

expected selector or type assertion, found 'return' (typecheck)
PodMetrics:
}, nil

Check failure on line 33 in internal/cri/server/list_pod_sandbox_metrics.go

View workflow job for this annotation

GitHub Actions / CodeQL-Build

syntax error: unexpected }, expected expression

Check failure on line 33 in internal/cri/server/list_pod_sandbox_metrics.go

View workflow job for this annotation

GitHub Actions / Linters (ubuntu-24.04)

syntax error: unexpected }, expected expression) (typecheck)

Check failure on line 33 in internal/cri/server/list_pod_sandbox_metrics.go

View workflow job for this annotation

GitHub Actions / Linters (ubuntu-24.04)

syntax error: unexpected }, expected expression) (typecheck)

Check failure on line 33 in internal/cri/server/list_pod_sandbox_metrics.go

View workflow job for this annotation

GitHub Actions / Linters (ubuntu-24.04)

syntax error: unexpected }, expected expression (typecheck)

Check failure on line 33 in internal/cri/server/list_pod_sandbox_metrics.go

View workflow job for this annotation

GitHub Actions / Linters (ubuntu-24.04)

expected operand, found '}' (typecheck)
}

0 comments on commit 2981bb8

Please sign in to comment.