diff --git a/cmd/clusterctl/internal/test/fake_processor.go b/cmd/clusterctl/internal/test/fake_processor.go index 92a5dd229949..5b50b8aa0d48 100644 --- a/cmd/clusterctl/internal/test/fake_processor.go +++ b/cmd/clusterctl/internal/test/fake_processor.go @@ -16,7 +16,9 @@ limitations under the License. package test -import "fmt" +import ( + "fmt" +) type FakeProcessor struct { errGetVariables error diff --git a/cmd/clusterctl/internal/test/fake_proxy.go b/cmd/clusterctl/internal/test/fake_proxy.go index f1524f477c8c..3fb9864f6168 100644 --- a/cmd/clusterctl/internal/test/fake_proxy.go +++ b/cmd/clusterctl/internal/test/fake_proxy.go @@ -17,6 +17,7 @@ limitations under the License. package test import ( + "context" "errors" apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1" @@ -96,7 +97,7 @@ func (f *FakeProxy) CheckClusterAvailable() error { } // ListResources returns all the resources known by the FakeProxy. -func (f *FakeProxy) ListResources(labels map[string]string, namespaces ...string) ([]unstructured.Unstructured, error) { +func (f *FakeProxy) ListResources(_ context.Context, labels map[string]string, namespaces ...string) ([]unstructured.Unstructured, error) { var ret []unstructured.Unstructured //nolint:prealloc for _, o := range f.objs { u := unstructured.Unstructured{} @@ -142,7 +143,7 @@ func (f *FakeProxy) GetContexts(_ string) ([]string, error) { return nil, nil } -func (f *FakeProxy) GetResourceNames(_, _ string, _ []client.ListOption, _ string) ([]string, error) { +func (f *FakeProxy) GetResourceNames(_ context.Context, _, _ string, _ []client.ListOption, _ string) ([]string, error) { return nil, nil } diff --git a/cmd/clusterctl/internal/test/fake_reader.go b/cmd/clusterctl/internal/test/fake_reader.go index 3fd8ea4c9f05..d34fa6821fc2 100644 --- a/cmd/clusterctl/internal/test/fake_reader.go +++ b/cmd/clusterctl/internal/test/fake_reader.go @@ -17,6 +17,8 @@ limitations under the License. package test import ( + "context" + "github.com/pkg/errors" "sigs.k8s.io/yaml" @@ -55,7 +57,7 @@ type imageMeta struct { Tag string `json:"tag,omitempty"` } -func (f *FakeReader) Init(_ string) error { +func (f *FakeReader) Init(_ context.Context, _ string) error { f.initialized = true return nil }