mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Merge pull request #22803 from derekwaynecarr/update_cadvisor
Auto commit by PR queue bot
This commit is contained in:
		
							
								
								
									
										72
									
								
								Godeps/Godeps.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										72
									
								
								Godeps/Godeps.json
									
									
									
										generated
									
									
									
								
							@@ -578,93 +578,93 @@
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			"ImportPath": "github.com/google/cadvisor/api",
 | 
			
		||||
			"Comment": "v0.22.0",
 | 
			
		||||
			"Rev": "e39fb02c89f2b39808bc1723108cde5bb510e102"
 | 
			
		||||
			"Comment": "v0.22.1",
 | 
			
		||||
			"Rev": "b344feb952c13e0730fa52eb5e5cf1cf7130ee9c"
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			"ImportPath": "github.com/google/cadvisor/cache/memory",
 | 
			
		||||
			"Comment": "v0.22.0",
 | 
			
		||||
			"Rev": "e39fb02c89f2b39808bc1723108cde5bb510e102"
 | 
			
		||||
			"Comment": "v0.22.1",
 | 
			
		||||
			"Rev": "b344feb952c13e0730fa52eb5e5cf1cf7130ee9c"
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			"ImportPath": "github.com/google/cadvisor/collector",
 | 
			
		||||
			"Comment": "v0.22.0",
 | 
			
		||||
			"Rev": "e39fb02c89f2b39808bc1723108cde5bb510e102"
 | 
			
		||||
			"Comment": "v0.22.1",
 | 
			
		||||
			"Rev": "b344feb952c13e0730fa52eb5e5cf1cf7130ee9c"
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			"ImportPath": "github.com/google/cadvisor/container",
 | 
			
		||||
			"Comment": "v0.22.0",
 | 
			
		||||
			"Rev": "e39fb02c89f2b39808bc1723108cde5bb510e102"
 | 
			
		||||
			"Comment": "v0.22.1",
 | 
			
		||||
			"Rev": "b344feb952c13e0730fa52eb5e5cf1cf7130ee9c"
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			"ImportPath": "github.com/google/cadvisor/events",
 | 
			
		||||
			"Comment": "v0.22.0",
 | 
			
		||||
			"Rev": "e39fb02c89f2b39808bc1723108cde5bb510e102"
 | 
			
		||||
			"Comment": "v0.22.1",
 | 
			
		||||
			"Rev": "b344feb952c13e0730fa52eb5e5cf1cf7130ee9c"
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			"ImportPath": "github.com/google/cadvisor/fs",
 | 
			
		||||
			"Comment": "v0.22.0",
 | 
			
		||||
			"Rev": "e39fb02c89f2b39808bc1723108cde5bb510e102"
 | 
			
		||||
			"Comment": "v0.22.1",
 | 
			
		||||
			"Rev": "b344feb952c13e0730fa52eb5e5cf1cf7130ee9c"
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			"ImportPath": "github.com/google/cadvisor/healthz",
 | 
			
		||||
			"Comment": "v0.22.0",
 | 
			
		||||
			"Rev": "e39fb02c89f2b39808bc1723108cde5bb510e102"
 | 
			
		||||
			"Comment": "v0.22.1",
 | 
			
		||||
			"Rev": "b344feb952c13e0730fa52eb5e5cf1cf7130ee9c"
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			"ImportPath": "github.com/google/cadvisor/http",
 | 
			
		||||
			"Comment": "v0.22.0",
 | 
			
		||||
			"Rev": "e39fb02c89f2b39808bc1723108cde5bb510e102"
 | 
			
		||||
			"Comment": "v0.22.1",
 | 
			
		||||
			"Rev": "b344feb952c13e0730fa52eb5e5cf1cf7130ee9c"
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			"ImportPath": "github.com/google/cadvisor/info/v1",
 | 
			
		||||
			"Comment": "v0.22.0",
 | 
			
		||||
			"Rev": "e39fb02c89f2b39808bc1723108cde5bb510e102"
 | 
			
		||||
			"Comment": "v0.22.1",
 | 
			
		||||
			"Rev": "b344feb952c13e0730fa52eb5e5cf1cf7130ee9c"
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			"ImportPath": "github.com/google/cadvisor/info/v2",
 | 
			
		||||
			"Comment": "v0.22.0",
 | 
			
		||||
			"Rev": "e39fb02c89f2b39808bc1723108cde5bb510e102"
 | 
			
		||||
			"Comment": "v0.22.1",
 | 
			
		||||
			"Rev": "b344feb952c13e0730fa52eb5e5cf1cf7130ee9c"
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			"ImportPath": "github.com/google/cadvisor/manager",
 | 
			
		||||
			"Comment": "v0.22.0",
 | 
			
		||||
			"Rev": "e39fb02c89f2b39808bc1723108cde5bb510e102"
 | 
			
		||||
			"Comment": "v0.22.1",
 | 
			
		||||
			"Rev": "b344feb952c13e0730fa52eb5e5cf1cf7130ee9c"
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			"ImportPath": "github.com/google/cadvisor/metrics",
 | 
			
		||||
			"Comment": "v0.22.0",
 | 
			
		||||
			"Rev": "e39fb02c89f2b39808bc1723108cde5bb510e102"
 | 
			
		||||
			"Comment": "v0.22.1",
 | 
			
		||||
			"Rev": "b344feb952c13e0730fa52eb5e5cf1cf7130ee9c"
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			"ImportPath": "github.com/google/cadvisor/pages",
 | 
			
		||||
			"Comment": "v0.22.0",
 | 
			
		||||
			"Rev": "e39fb02c89f2b39808bc1723108cde5bb510e102"
 | 
			
		||||
			"Comment": "v0.22.1",
 | 
			
		||||
			"Rev": "b344feb952c13e0730fa52eb5e5cf1cf7130ee9c"
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			"ImportPath": "github.com/google/cadvisor/storage",
 | 
			
		||||
			"Comment": "v0.22.0",
 | 
			
		||||
			"Rev": "e39fb02c89f2b39808bc1723108cde5bb510e102"
 | 
			
		||||
			"Comment": "v0.22.1",
 | 
			
		||||
			"Rev": "b344feb952c13e0730fa52eb5e5cf1cf7130ee9c"
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			"ImportPath": "github.com/google/cadvisor/summary",
 | 
			
		||||
			"Comment": "v0.22.0",
 | 
			
		||||
			"Rev": "e39fb02c89f2b39808bc1723108cde5bb510e102"
 | 
			
		||||
			"Comment": "v0.22.1",
 | 
			
		||||
			"Rev": "b344feb952c13e0730fa52eb5e5cf1cf7130ee9c"
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			"ImportPath": "github.com/google/cadvisor/utils",
 | 
			
		||||
			"Comment": "v0.22.0",
 | 
			
		||||
			"Rev": "e39fb02c89f2b39808bc1723108cde5bb510e102"
 | 
			
		||||
			"Comment": "v0.22.1",
 | 
			
		||||
			"Rev": "b344feb952c13e0730fa52eb5e5cf1cf7130ee9c"
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			"ImportPath": "github.com/google/cadvisor/validate",
 | 
			
		||||
			"Comment": "v0.22.0",
 | 
			
		||||
			"Rev": "e39fb02c89f2b39808bc1723108cde5bb510e102"
 | 
			
		||||
			"Comment": "v0.22.1",
 | 
			
		||||
			"Rev": "b344feb952c13e0730fa52eb5e5cf1cf7130ee9c"
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			"ImportPath": "github.com/google/cadvisor/version",
 | 
			
		||||
			"Comment": "v0.22.0",
 | 
			
		||||
			"Rev": "e39fb02c89f2b39808bc1723108cde5bb510e102"
 | 
			
		||||
			"Comment": "v0.22.1",
 | 
			
		||||
			"Rev": "b344feb952c13e0730fa52eb5e5cf1cf7130ee9c"
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			"ImportPath": "github.com/google/gofuzz",
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								Godeps/_workspace/src/github.com/google/cadvisor/info/v1/machine.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								Godeps/_workspace/src/github.com/google/cadvisor/info/v1/machine.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -125,7 +125,7 @@ const (
 | 
			
		||||
	AWS                           = "AWS"
 | 
			
		||||
	Azure                         = "Azure"
 | 
			
		||||
	Baremetal                     = "Baremetal"
 | 
			
		||||
	UnkownProvider               = "Unknown"
 | 
			
		||||
	UnknownProvider               = "Unknown"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
type InstanceType string
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										10
									
								
								Godeps/_workspace/src/github.com/google/cadvisor/utils/cloudinfo/aws.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								Godeps/_workspace/src/github.com/google/cadvisor/utils/cloudinfo/aws.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -15,6 +15,8 @@
 | 
			
		||||
package cloudinfo
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	"time"
 | 
			
		||||
 | 
			
		||||
	"github.com/aws/aws-sdk-go/aws"
 | 
			
		||||
	"github.com/aws/aws-sdk-go/aws/ec2metadata"
 | 
			
		||||
	"github.com/aws/aws-sdk-go/aws/session"
 | 
			
		||||
@@ -23,7 +25,13 @@ import (
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
func onAWS() bool {
 | 
			
		||||
	client := ec2metadata.New(session.New(&aws.Config{}))
 | 
			
		||||
	// the default client behavior retried the operation multiple times with a 5s timeout per attempt.
 | 
			
		||||
	// if you were not on aws, you would block for 20s when invoking this operation.
 | 
			
		||||
	// we reduce retries to 0 and set the timeout to 2s to reduce the time this blocks when not on aws.
 | 
			
		||||
	client := ec2metadata.New(session.New(&aws.Config{MaxRetries: aws.Int(0)}))
 | 
			
		||||
	if client.Config.HTTPClient != nil {
 | 
			
		||||
		client.Config.HTTPClient.Timeout = time.Duration(2 * time.Second)
 | 
			
		||||
	}
 | 
			
		||||
	return client.Available()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								Godeps/_workspace/src/github.com/google/cadvisor/utils/cloudinfo/cloudinfo.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								Godeps/_workspace/src/github.com/google/cadvisor/utils/cloudinfo/cloudinfo.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -66,7 +66,7 @@ func detectCloudProvider() info.CloudProvider {
 | 
			
		||||
	case onBaremetal():
 | 
			
		||||
		return info.Baremetal
 | 
			
		||||
	}
 | 
			
		||||
	return info.UnkownProvider
 | 
			
		||||
	return info.UnknownProvider
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func detectInstanceType(cloudProvider info.CloudProvider) info.InstanceType {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user