code: func NewAuthPreference(spec AuthPreferenceSpecV2) (AuthPreference, error) {
  	return &AuthPreferenceV2{
  		Kind:    KindClusterAuthPreference,
  		Version: V2,
  		Metadata: Metadata{
  			Name:      MetaNameClusterAuthPreference,
  			Namespace: defaults.Namespace,
  		},
  		Spec: spec,
  	}, nil
  }
docs: // NewAuthPreference is a convenience method to to create AuthPreferenceV2.