code: func stackFromV1beta1(in *v1beta1.Stack) (Stack, error) {
  	cfg, err := loadStackData(in.Spec.ComposeFile)
  	if err != nil {
  		return Stack{}, err
  	}
  	spec, err := fromComposeConfig(ioutil.Discard, cfg, v1beta1Capabilities)
  	if err != nil {
  		return Stack{}, err
  	}
  	return Stack{
  		Name:        in.ObjectMeta.Name,
  		Namespace:   in.ObjectMeta.Namespace,
  		ComposeFile: in.Spec.ComposeFile,
  		Spec:        spec,
  	}, nil
  }
docs: // Conversions from internal stack to different stack compose component versions.