Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrAPIDirNotExist is returned if an API directory does not exist. ErrAPIDirNotExist = errors.New("directory for API does not exist") // ErrAPITypeNotFound is returned if no type with a name matching the kind // of an API is found. ErrAPITypeNotFound = errors.New("kind type for API not found") )
Functions ¶
func GetCRDDescriptionForGVK ¶
func GetCRDDescriptionForGVK(apisDir string, gvk schema.GroupVersionKind) (olmapiv1alpha1.CRDDescription, error)
GetCRDDescriptionForGVK parses type and struct field declaration comments on API types to populate a csv's spec.customresourcedefinitions.owned fields for a given API identified by Group, Version, and Kind in apisDir. TODO(estroz): support ActionDescriptors parsing/setting.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.