code: func (s *Scheme) AddKnownTypes(gv schema.GroupVersion, types ...Object) {
  	s.addObservedVersion(gv)
  	for _, obj := range types {
  		t := reflect.TypeOf(obj)
  		if t.Kind() != reflect.Ptr {
  			panic("All types must be pointers to structs.")
  		}
  		t = t.Elem()
  		s.AddKnownTypeWithName(gv.WithKind(t.Name()), obj)
  	}
  }
docs: // AddKnownTypes registers all types passed in 'types' as being members of version 'version'.
  // All objects passed to types should be pointers to structs. The name that go reports for
  // the struct becomes the "kind" field when encoding. Version may not be empty - use the
  // APIVersionInternal constant if you have a type that does not have a formal version.