code: func MarshalKubeadmConfigObject(obj runtime.Object) ([]byte, error) {
  	switch internalcfg := obj.(type) {
  	case *kubeadmapi.InitConfiguration:
  		return MarshalInitConfigurationToBytes(internalcfg, kubeadmapiv1beta2.SchemeGroupVersion)
  	case *kubeadmapi.ClusterConfiguration:
  		return MarshalClusterConfigurationToBytes(internalcfg, kubeadmapiv1beta2.SchemeGroupVersion)
  	default:
  		return kubeadmutil.MarshalToYamlForCodecs(obj, kubeadmapiv1beta2.SchemeGroupVersion, kubeadmscheme.Codecs)
  	}
  }
docs: // MarshalKubeadmConfigObject marshals an Object registered in the kubeadm scheme. If the object is a InitConfiguration or ClusterConfiguration, some extra logic is run