Skip to content

Commit

Permalink
add utils packages
Browse files Browse the repository at this point in the history
  • Loading branch information
bcm820 authored and eljohnson92 committed Apr 8, 2024
1 parent 49e6c7f commit d56d0e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/src/developers/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ The code in this repo is organized across the following packages:
- `/cloud/scope` contains all Kubernetes client interactions scoped to each resource reconciliation loop. Each "scope" object is expected to store both a Kubernetes client and a Linode client.
- `/cloud/services` contains all Linode client interactions. Functions defined in this package all expect a "scope" object which contains a Linode client to use.
- `/mock` contains [gomock](https://github.com/uber-go/mock) clients generated from `/cloud/scope/client.go`.
- `/util/` contains general-use helper functions used in other packages.
- `/util/reconciler` contains helper functions and constants used within the `/controller` package.
When adding a new controller, it is preferable that controller code only use the Kubernetes and Linode clients via functions defined in `/cloud/scope` and `/cloud/services`. This ensures each separate package can be tested in isolation using mock clients.
Expand Down

0 comments on commit d56d0e8

Please sign in to comment.