code: func GetCRDStorageVersion(crd *CustomResourceDefinition) (string, error) {
  	for _, v := range crd.Spec.Versions {
  		if v.Storage {
  			return v.Name, nil
  		}
  	}
  	// This should not happened if crd is valid
  	return "", fmt.Errorf("invalid CustomResourceDefinition, no storage version")
  }
docs: // GetCRDStorageVersion returns the storage version for given CRD.