The models for the dynamic controller presubmits are nil bc we never Init the registry. This also proved to me that we probably want to error out in AddController if model is nil for a gvk. Finally, if the registration for a gk contains a nil model, we probably want to err out to signal to consumers that Init was not called.
Needs approval from an approver in each of these files:
- ~~[OWNERS](https://github.com/GoogleCloudPlatform/k8s-config-connector/blob/master/OWNERS)~~ [justinsb]
Approvers can indicate their approval by writing `/approve` in a comment
Approvers can cancel approval by writing `/approve cancel` in a comment
The
model
s for the dynamic controller presubmits are nil bc we neverInit
the registry. This also proved to me that we probably want to error out inAddController
ifmodel
is nil for agvk
. Finally, if theregistration
for agk
contains anil
model, we probably want to err out to signal to consumers thatInit
was not called.