Skip to content

Commit

Permalink
return node even if failed to fetch info
Browse files Browse the repository at this point in the history
  • Loading branch information
jschwinger233 committed Dec 29, 2021
1 parent 112c62d commit 4d32584
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion cluster/calcium/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ func (c *Calcium) ListPodNodes(ctx context.Context, opts *types.ListNodesOptions
err := node.Info(ctx)
if err != nil {
logger.Errorf(ctx, "failed to get node info: %+v", err)
return
}
ch <- node
}
Expand Down
2 changes: 1 addition & 1 deletion types/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (n NodeMeta) DeepCopy() (nn NodeMeta, err error) {
// Node store node info
type Node struct {
NodeMeta
NodeInfo string
NodeInfo string `json:"-"`

CPUUsed float64 `json:"cpuused"`
VolumeUsed int64 `json:"volumeused"`
Expand Down

0 comments on commit 4d32584

Please sign in to comment.