Skip to content

Commit 2e8d164

Browse files
authored
[chore] Unexport MockDiscovery struct of k8sobjects receiver (#40691)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description This PR unexports `MockDiscovery` struct of the `k8sobjects` receiver <!-- Issue number (e.g. #1234) or full URL to issue, if applicable. --> #### Link to tracking issue Fixes #40668 /cc @atoulme Signed-off-by: ChrsMark <[email protected]>
1 parent 790c789 commit 2e8d164

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

receiver/k8sobjectsreceiver/mock_discovery_client_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ import (
99
fakeDiscovery "k8s.io/client-go/discovery/fake"
1010
)
1111

12-
type MockDiscovery struct {
12+
type mockDiscovery struct {
1313
fakeDiscovery.FakeDiscovery
1414
}
1515

16-
func (c *MockDiscovery) ServerPreferredResources() ([]*metav1.APIResourceList, error) {
16+
func (c *mockDiscovery) ServerPreferredResources() ([]*metav1.APIResourceList, error) {
1717
return []*metav1.APIResourceList{
1818
{
1919
GroupVersion: "v1",
@@ -59,5 +59,5 @@ func (c *MockDiscovery) ServerPreferredResources() ([]*metav1.APIResourceList, e
5959
}
6060

6161
func getMockDiscoveryClient() (discovery.ServerResourcesInterface, error) {
62-
return &MockDiscovery{}, nil
62+
return &mockDiscovery{}, nil
6363
}

0 commit comments

Comments
 (0)