10
vendor/sigs.k8s.io/controller-runtime/pkg/scheme/scheme.go
generated
vendored
10
vendor/sigs.k8s.io/controller-runtime/pkg/scheme/scheme.go
generated
vendored
@@ -36,13 +36,13 @@ limitations under the License.
|
||||
// )
|
||||
//
|
||||
// This also true of the built-in Kubernetes types. Then, in the entrypoint for
|
||||
// your manager, assemble the scheme containing exactly the types you need.
|
||||
// For instance, if our controller needs types from the core/v1 API group (e.g. Pod),
|
||||
// plus types from my.api.group/v1:
|
||||
// your manager, assemble the scheme containing exactly the types you need,
|
||||
// panicing if scheme registration failed. For instance, if our controller needs
|
||||
// types from the core/v1 API group (e.g. Pod), plus types from my.api.group/v1:
|
||||
//
|
||||
// func init() {
|
||||
// myapigroupv1.AddToScheme(scheme)
|
||||
// kubernetesscheme.AddToScheme(scheme)
|
||||
// utilruntime.Must(myapigroupv1.AddToScheme(scheme))
|
||||
// utilruntime.Must(kubernetesscheme.AddToScheme(scheme))
|
||||
// }
|
||||
//
|
||||
// func main() {
|
||||
|
||||
Reference in New Issue
Block a user