Skip to content

Commit ea32729

Browse files
authored
Merge pull request #894 from christopherhein/chore/docs-for-scheme
Adding docs using utilruntime.Must for scheme registration
2 parents dfb60c9 + fc53744 commit ea32729

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pkg/scheme/scheme.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ limitations under the License.
3636
// )
3737
//
3838
// This also true of the built-in Kubernetes types. Then, in the entrypoint for
39-
// your manager, assemble the scheme containing exactly the types you need.
40-
// For instance, if our controller needs types from the core/v1 API group (e.g. Pod),
41-
// plus types from my.api.group/v1:
39+
// your manager, assemble the scheme containing exactly the types you need,
40+
// panicing if scheme registration failed. For instance, if our controller needs
41+
// types from the core/v1 API group (e.g. Pod), plus types from my.api.group/v1:
4242
//
4343
// func init() {
44-
// myapigroupv1.AddToScheme(scheme)
45-
// kubernetesscheme.AddToScheme(scheme)
44+
// utilruntime.Must(myapigroupv1.AddToScheme(scheme))
45+
// utilruntime.Must(kubernetesscheme.AddToScheme(scheme))
4646
// }
4747
//
4848
// func main() {

0 commit comments

Comments
 (0)