-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates ControllerInterface to use a cache struct.
Changes the generated cache to a pointer receiver, and the ControllerInterface now returns a real struct instead of an interface. These changes greatly reduce the amount of generated code needed and allows users to use the mocks directly with controllers without having to wrap them as an embedded object.
- Loading branch information
1 parent
53d2d35
commit a552dc0
Showing
45 changed files
with
115 additions
and
3,028 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
8 changes: 2 additions & 6 deletions
8
pkg/generated/controllers/admissionregistration.k8s.io/v1/interface.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
100 changes: 2 additions & 98 deletions
100
pkg/generated/controllers/admissionregistration.k8s.io/v1/mutatingwebhookconfiguration.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.