code: func getGroupVersionKind(config map[string]interface{}) (schema.GroupVersionKind, error) {
  	gvk := schema.GroupVersionKind{}
  	if gv, found := config["apiVersion"]; found {
  		casted, ok := gv.(string)
  		if !ok {
  			return gvk, fmt.Errorf("Expected string for apiVersion, found %T", gv)
  		}
  		s := strings.Split(casted, "/")
  		if len(s) != 1 {
  			gvk.Group = s[0]
  		}
  		gvk.Version = s[len(s)-1]
  	} else {
  		return gvk, fmt.Errorf("Missing apiVersion in Kind %v", config)
  	}
  	if k, found := config["kind"]; found {
  		casted, ok := k.(string)
  		if !ok {
  			return gvk, fmt.Errorf("Expected string for kind, found %T", k)
  		}
  		gvk.Kind = casted
  	} else {
  		return gvk, fmt.Errorf("Missing kind in Kind %v", config)
  	}
  	return gvk, nil
  }
docs: // getGroupVersionKind returns the GroupVersionKind of the object