descriptor

package
v0.17.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL