mirror of https://github.com/kubernetes/kops.git
Fix node-authorizer/pkg/authorizers/aws staticcheck failure
This commit is contained in:
parent
4c57d2aad4
commit
00abe3af7e
|
@ -1,4 +1,3 @@
|
||||||
node-authorizer/pkg/authorizers/aws
|
|
||||||
node-authorizer/pkg/server
|
node-authorizer/pkg/server
|
||||||
pkg/resources/openstack
|
pkg/resources/openstack
|
||||||
upup/pkg/fi
|
upup/pkg/fi
|
||||||
|
|
|
@ -19,9 +19,6 @@ package aws
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"net"
|
|
||||||
"net/http"
|
|
||||||
"time"
|
|
||||||
|
|
||||||
"k8s.io/kops/node-authorizer/pkg/server"
|
"k8s.io/kops/node-authorizer/pkg/server"
|
||||||
|
|
||||||
|
@ -29,17 +26,6 @@ import (
|
||||||
"github.com/aws/aws-sdk-go/aws/session"
|
"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{}
|
type awsNodeVerifier struct{}
|
||||||
|
|
||||||
// NewVerifier creates and returns a verifier
|
// NewVerifier creates and returns a verifier
|
||||||
|
|
Loading…
Reference in New Issue