cmd/ |
Contains the entry point (main.go ) of the operator, where the Controller Manager is started. |
controllers/ |
Contains the controller logic (i.e., the Reconcile() function). |
api/ |
Defines Custom Resource Definitions (CRDs) and their Go struct representations. |
config/ |
Contains Kustomize configurations for deploying the controller. |
hack/ |
Scripts and tools (e.g., code generation tools, local testing). |
internal/ |
(Not created by default) Can be used for business logic services and helper functions. |
pkg/ |
(Optional) Can contain shared utilities. |