Merge pull request #8222 from johngmyers/aws-staticcheck

Fix node-authorizer/pkg/authorizers/aws staticcheck failure
This commit is contained in:
Kubernetes Prow Robot 2019-12-29 20:37:38 -08:00 committed by GitHub
commit f2aea07b80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 15 deletions

View File

@ -1,4 +1,3 @@
node-authorizer/pkg/authorizers/aws
node-authorizer/pkg/server
pkg/resources/openstack
upup/pkg/fi

View File

@ -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