rancher/rancher and rancher/shepherd are expecting SchemeBuilder to be a apimachinery.SchemeBuilder, we want to use the one from controller runtime internally. Embedding the c-r code, so consumers don't inherit the controller-runtime dependency from our API pkg. Hasn't changed for years.
Refers to https://github.com/rancher/rancher/pull/45271 and https://github.com/rancher/fleet/pull/2377
rancher/rancher and rancher/shepherd are expecting
SchemeBuilder
to be aapimachinery.SchemeBuilder
, we want to use the one from controller runtime internally. Embedding the c-r code, so consumers don't inherit the controller-runtime dependency from our API pkg. Hasn't changed for years.