mirror of
https://github.com/weaveworks/scope.git
synced 2026-08-18 20:07:06 +00:00
probe: stop calling 'weave ps'
Now that we enter the container namespace to fetch IPs for every container, there is no need to have 'weave ps' do it. This does mean we lose Weave MAC addresses, but that is a rather idiosyncratic feature anyway.
This commit is contained in:
@@ -12,8 +12,6 @@ const (
|
||||
MockWeavePeerNickName = "winny"
|
||||
MockWeaveDefaultSubnet = "10.32.0.1/12"
|
||||
MockContainerID = "83183a667c01"
|
||||
MockContainerMAC = "d6:f2:5a:12:36:a8"
|
||||
MockContainerIP = "10.0.0.123"
|
||||
MockHostname = "hostname.weave.local"
|
||||
MockProxyAddress = "unix:///foo/bar/weave.sock"
|
||||
MockDriverName = "weave_mock"
|
||||
@@ -70,17 +68,6 @@ func (MockClient) AddDNSEntry(fqdn, containerid string, ip net.IP) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// PS implements weave.Client
|
||||
func (MockClient) PS() (map[string]weave.PSEntry, error) {
|
||||
return map[string]weave.PSEntry{
|
||||
MockContainerID: {
|
||||
ContainerIDPrefix: MockContainerID,
|
||||
MACAddress: MockContainerMAC,
|
||||
IPs: []string{MockContainerIP},
|
||||
},
|
||||
}, nil
|
||||
}
|
||||
|
||||
// Expose implements weave.Client
|
||||
func (MockClient) Expose() error {
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user