Package openapi is a collection of libraries for fetching the openapi spec from a Kubernetes server and then indexing the type definitions. The openapi spec contains the object model definitions and extensions metadata such as the patchStrategy and patchMergeKey for creating patches.
- func GetPrintColumns(extensions spec.Extensions) (string, bool)
- func SupportsDryRun(doc *openapi_v2.Document, gvk schema.GroupVersionKind) (bool, error)
- type Getter
- type Resources
const PrintColumnsKey = "x-kubernetes-print-columns"
PrintColumnsKey is the key that defines which columns should be printed
This section is empty.
func GetPrintColumns ¶
GetPrintColumns looks for the open API extension for the display columns.
Getter is an interface for fetching openapi specs and parsing them into an Resources struct
Resources interface describe a resources provider, that can give you resource based on group-version-kind.