diff --git a/pkg/client/fake.go b/pkg/client/fake.go index 64975530def..0ed9b4e0838 100644 --- a/pkg/client/fake.go +++ b/pkg/client/fake.go @@ -80,9 +80,9 @@ func (c *Fake) ServerAPIVersions() (*api.APIVersions, error) { return &api.APIVersions{Versions: []string{"v1beta1", "v1beta2"}}, nil } -type HttpClientFunc func(*http.Request) (*http.Response, error) +type HTTPClientFunc func(*http.Request) (*http.Response, error) -func (f HttpClientFunc) Do(req *http.Request) (*http.Response, error) { +func (f HTTPClientFunc) Do(req *http.Request) (*http.Response, error) { return f(req) } diff --git a/pkg/kubectl/resthelper_test.go b/pkg/kubectl/resthelper_test.go index 25e942c037c..4ea806f60d3 100644 --- a/pkg/kubectl/resthelper_test.go +++ b/pkg/kubectl/resthelper_test.go @@ -125,7 +125,7 @@ func TestRESTHelperCreate(t *testing.T) { tests := []struct { Resp *http.Response - RespFunc client.HttpClientFunc + RespFunc client.HTTPClientFunc HttpErr error Modify bool Object runtime.Object @@ -299,7 +299,7 @@ func TestRESTHelperUpdate(t *testing.T) { tests := []struct { Resp *http.Response - RespFunc client.HttpClientFunc + RespFunc client.HTTPClientFunc HttpErr error Overwrite bool Object runtime.Object