-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move ks client reader to separated directory (#3018)
Problem: Adding update of ks client Reader interface and FakeReader into separated directory. Solution: Moved files, updated import paths.
- Loading branch information
Showing
5 changed files
with
27 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package kubernetes | ||
|
||
import "sigs.k8s.io/controller-runtime/pkg/client" | ||
|
||
//go:generate go run github.com/maxbrunsfeld/counterfeiter/v6 -generate | ||
|
||
//counterfeiter:generate . Reader | ||
|
||
// Reader allows getting and listing resources from a cache. | ||
// This interface is introduced for testing to mock the methods from | ||
// sigs.k8s.io/controller-runtime/pkg/client.Reader. | ||
type Reader interface { | ||
client.Reader | ||
} |
6 changes: 3 additions & 3 deletions
6
...amework/events/eventsfakes/fake_reader.go → ...kubernetes/kubernetesfakes/fake_reader.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters