code: func HasVersionServed(crd *CustomResourceDefinition, version string) bool {
  	for _, v := range crd.Spec.Versions {
  		if !v.Served || v.Name != version {
  			continue
  		}
  		return true
  	}
  	return false
  }
docs: // HasVersionServed returns true if given CRD has given version served.