Update to new cadvisor v0.48.1

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
This commit is contained in:
Davanum Srinivas
2023-10-31 07:51:09 -04:00
parent 0294521985
commit 8b9fc325e2
36 changed files with 425 additions and 331 deletions

View File

@@ -15,7 +15,7 @@
package cloudinfo
import (
"io/ioutil"
"os"
"strings"
info "github.com/google/cadvisor/info/v1"
@@ -37,7 +37,7 @@ type provider struct{}
var _ cloudinfo.CloudProvider = provider{}
func (provider) IsActiveProvider() bool {
data, err := ioutil.ReadFile(sysVendorFileName)
data, err := os.ReadFile(sysVendorFileName)
if err != nil {
return false
}
@@ -50,7 +50,7 @@ func (provider) GetInstanceType() info.InstanceType {
}
func (provider) GetInstanceID() info.InstanceID {
data, err := ioutil.ReadFile(biosUUIDFileName)
data, err := os.ReadFile(biosUUIDFileName)
if err != nil {
return info.UnNamedInstance
}