mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 06:54:01 +00:00
Remove the workaround of heapster panic
This commit is contained in:
parent
d39bfa0d13
commit
a757a69b45
@ -61,7 +61,6 @@ go_library(
|
|||||||
"//pkg/kubelet/types:go_default_library",
|
"//pkg/kubelet/types:go_default_library",
|
||||||
"//pkg/volume:go_default_library",
|
"//pkg/volume:go_default_library",
|
||||||
"//vendor/github.com/golang/glog:go_default_library",
|
"//vendor/github.com/golang/glog:go_default_library",
|
||||||
"//vendor/github.com/golang/protobuf/proto:go_default_library",
|
|
||||||
"//vendor/github.com/google/cadvisor/fs:go_default_library",
|
"//vendor/github.com/google/cadvisor/fs:go_default_library",
|
||||||
"//vendor/github.com/google/cadvisor/info/v1:go_default_library",
|
"//vendor/github.com/google/cadvisor/info/v1:go_default_library",
|
||||||
"//vendor/github.com/google/cadvisor/info/v2:go_default_library",
|
"//vendor/github.com/google/cadvisor/info/v2:go_default_library",
|
||||||
|
@ -25,7 +25,6 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/golang/glog"
|
"github.com/golang/glog"
|
||||||
"github.com/golang/protobuf/proto"
|
|
||||||
cadvisorfs "github.com/google/cadvisor/fs"
|
cadvisorfs "github.com/google/cadvisor/fs"
|
||||||
|
|
||||||
cadvisorapiv2 "github.com/google/cadvisor/info/v2"
|
cadvisorapiv2 "github.com/google/cadvisor/info/v2"
|
||||||
@ -301,15 +300,9 @@ func (p *criStatsProvider) makeContainerStats(
|
|||||||
Name: stats.Attributes.Metadata.Name,
|
Name: stats.Attributes.Metadata.Name,
|
||||||
// The StartTime in the summary API is the container creation time.
|
// The StartTime in the summary API is the container creation time.
|
||||||
StartTime: metav1.NewTime(time.Unix(0, container.CreatedAt)),
|
StartTime: metav1.NewTime(time.Unix(0, container.CreatedAt)),
|
||||||
// Work around heapster bug. https://github.com/kubernetes/kubernetes/issues/54962
|
CPU: &statsapi.CPUStats{},
|
||||||
// TODO(random-liu): Remove this after heapster is updated to newer than 1.5.0-beta.0.
|
Memory: &statsapi.MemoryStats{},
|
||||||
CPU: &statsapi.CPUStats{
|
Rootfs: &statsapi.FsStats{},
|
||||||
UsageNanoCores: proto.Uint64(0),
|
|
||||||
},
|
|
||||||
Memory: &statsapi.MemoryStats{
|
|
||||||
RSSBytes: proto.Uint64(0),
|
|
||||||
},
|
|
||||||
Rootfs: &statsapi.FsStats{},
|
|
||||||
// UserDefinedMetrics is not supported by CRI.
|
// UserDefinedMetrics is not supported by CRI.
|
||||||
}
|
}
|
||||||
if stats.Cpu != nil {
|
if stats.Cpu != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user