mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-08 11:38:15 +00:00
Merge pull request #118124 from humblec/kubeadm-etcd
test/e2e: remove redundunt type conversion, unused variable...etc
This commit is contained in:
commit
b31774d39b
@ -111,7 +111,7 @@ func connectSCTP(dest string, timeout time.Duration) {
|
||||
}
|
||||
|
||||
timeoutCh := time.After(timeout)
|
||||
errCh := make(chan (error))
|
||||
errCh := make(chan error)
|
||||
|
||||
go func() {
|
||||
conn, err := sctp.DialSCTP("sctp", nil, addr)
|
||||
|
@ -29,7 +29,7 @@ import (
|
||||
"runtime"
|
||||
"time"
|
||||
|
||||
oidc "github.com/coreos/go-oidc"
|
||||
"github.com/coreos/go-oidc"
|
||||
"github.com/spf13/cobra"
|
||||
"golang.org/x/oauth2"
|
||||
"gopkg.in/square/go-jose.v2/jwt"
|
||||
|
@ -61,7 +61,7 @@ func TestAddLabel(t *testing.T) {
|
||||
review := v1.AdmissionReview{Request: &v1.AdmissionRequest{Object: runtime.RawExtension{Raw: raw}}}
|
||||
response := addLabel(review)
|
||||
if response.Patch != nil {
|
||||
patchObj, err := jsonpatch.DecodePatch([]byte(response.Patch))
|
||||
patchObj, err := jsonpatch.DecodePatch(response.Patch)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
@ -37,6 +37,4 @@ const (
|
||||
UnknownFunction = "unknown function"
|
||||
IncorrectFunctionArgument = "incorrect function argument"
|
||||
NotGivenFunctionArgument = "not given function argument"
|
||||
|
||||
FrameworkName = "horizontal-pod-autoscaling"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user