Skip to content

Commit 1f34863

Browse files
committed
fix cadvisor.New signature for cross build
1 parent 3ccc755 commit 1f34863

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/kubelet/cadvisor/cadvisor_unsupported.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ type cadvisorUnsupported struct {
3131

3232
var _ Interface = new(cadvisorUnsupported)
3333

34-
func New(address string, port uint, imageFsInfoProvider ImageFsInfoProvider, rootPath string) (Interface, error) {
34+
func New(address string, port uint, imageFsInfoProvider ImageFsInfoProvider, rootPath string, usingLegacyStats bool) (Interface, error) {
3535
return &cadvisorUnsupported{}, nil
3636
}
3737

pkg/kubelet/cadvisor/cadvisor_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ type cadvisorClient struct {
3232
var _ Interface = new(cadvisorClient)
3333

3434
// New creates a cAdvisor and exports its API on the specified port if port > 0.
35-
func New(address string, port uint, imageFsInfoProvider ImageFsInfoProvider, rootPath string) (Interface, error) {
35+
func New(address string, port uint, imageFsInfoProvider ImageFsInfoProvider, rootPath string, usingLegacyStats bool) (Interface, error) {
3636
client, err := winstats.NewPerfCounterClient()
3737
return &cadvisorClient{winStatsClient: client}, err
3838
}

0 commit comments

Comments
 (0)