code: func (bt *BootstrapToken) ToSecret() *v1.Secret {
  	return &v1.Secret{
  		ObjectMeta: metav1.ObjectMeta{
  			Name:      bootstraputil.BootstrapTokenSecretName(bt.Token.ID),
  			Namespace: metav1.NamespaceSystem,
  		},
  		Type: v1.SecretType(bootstrapapi.SecretTypeBootstrapToken),
  		Data: encodeTokenSecretData(bt, time.Now()),
  	}
  }
docs: // ToSecret converts the given BootstrapToken object to its Secret representation that
  // may be submitted to the API Server in order to be stored.