mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 12:07:47 +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)
|
timeoutCh := time.After(timeout)
|
||||||
errCh := make(chan (error))
|
errCh := make(chan error)
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
conn, err := sctp.DialSCTP("sctp", nil, addr)
|
conn, err := sctp.DialSCTP("sctp", nil, addr)
|
||||||
|
@ -29,7 +29,7 @@ import (
|
|||||||
"runtime"
|
"runtime"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
oidc "github.com/coreos/go-oidc"
|
"github.com/coreos/go-oidc"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"golang.org/x/oauth2"
|
"golang.org/x/oauth2"
|
||||||
"gopkg.in/square/go-jose.v2/jwt"
|
"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}}}
|
review := v1.AdmissionReview{Request: &v1.AdmissionRequest{Object: runtime.RawExtension{Raw: raw}}}
|
||||||
response := addLabel(review)
|
response := addLabel(review)
|
||||||
if response.Patch != nil {
|
if response.Patch != nil {
|
||||||
patchObj, err := jsonpatch.DecodePatch([]byte(response.Patch))
|
patchObj, err := jsonpatch.DecodePatch(response.Patch)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
@ -37,6 +37,4 @@ const (
|
|||||||
UnknownFunction = "unknown function"
|
UnknownFunction = "unknown function"
|
||||||
IncorrectFunctionArgument = "incorrect function argument"
|
IncorrectFunctionArgument = "incorrect function argument"
|
||||||
NotGivenFunctionArgument = "not given function argument"
|
NotGivenFunctionArgument = "not given function argument"
|
||||||
|
|
||||||
FrameworkName = "horizontal-pod-autoscaling"
|
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user