mirror of https://github.com/kubernetes/kops.git
				
				
				
			Merge pull request #8222 from johngmyers/aws-staticcheck
Fix node-authorizer/pkg/authorizers/aws staticcheck failure
This commit is contained in:
		
						commit
						f2aea07b80
					
				| 
						 | 
				
			
			@ -1,4 +1,3 @@
 | 
			
		|||
node-authorizer/pkg/authorizers/aws
 | 
			
		||||
node-authorizer/pkg/server
 | 
			
		||||
pkg/resources/openstack
 | 
			
		||||
upup/pkg/fi
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -19,9 +19,6 @@ package aws
 | 
			
		|||
import (
 | 
			
		||||
	"context"
 | 
			
		||||
	"encoding/json"
 | 
			
		||||
	"net"
 | 
			
		||||
	"net/http"
 | 
			
		||||
	"time"
 | 
			
		||||
 | 
			
		||||
	"k8s.io/kops/node-authorizer/pkg/server"
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -29,17 +26,6 @@ import (
 | 
			
		|||
	"github.com/aws/aws-sdk-go/aws/session"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
// hc is the http client
 | 
			
		||||
var hc = &http.Client{
 | 
			
		||||
	Timeout: 10 * time.Second,
 | 
			
		||||
	Transport: &http.Transport{
 | 
			
		||||
		Dial: (&net.Dialer{
 | 
			
		||||
			Timeout: 10 * time.Second,
 | 
			
		||||
		}).Dial,
 | 
			
		||||
		TLSHandshakeTimeout: 10 * time.Second,
 | 
			
		||||
	},
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type awsNodeVerifier struct{}
 | 
			
		||||
 | 
			
		||||
// NewVerifier creates and returns a verifier
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue