Documentation ¶
Overview ¶
Package olm provides an API to install, uninstall, and check the status of an Operator Lifecycle Manager installation. TODO: move to OLM repository?
Package olm provides an API to install, uninstall, and check the status of an Operator Lifecycle Manager installation. TODO: move to OLM repository?
Index ¶
- Constants
- Variables
- type Client
- func (c Client) DoCSVWait(ctx context.Context, key types.NamespacedName) error
- func (c Client) DoCreate(ctx context.Context, objs ...runtime.Object) error
- func (c Client) DoDelete(ctx context.Context, objs ...runtime.Object) error
- func (c Client) DoRolloutWait(ctx context.Context, key types.NamespacedName) error
- func (c Client) GetInstalledVersion(ctx context.Context) (string, error)
- func (c Client) GetObjectsStatus(ctx context.Context, objs ...runtime.Object) Status
- type ResourceStatus
- type Status
Constants ¶
View Source
const OLMNamespace = "olm"
Variables ¶
View Source
var ErrOLMNotInstalled = errors.New("no existing installation found")
View Source
var Scheme = scheme.Scheme
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (Client) DoRolloutWait ¶
func (Client) GetInstalledVersion ¶ added in v0.11.0
type ResourceStatus ¶
type ResourceStatus struct { NamespacedName types.NamespacedName Resource *unstructured.Unstructured GVK schema.GroupVersionKind Error error // contains filtered or unexported fields }
type Status ¶
type Status struct {
Resources []ResourceStatus
}
func (Status) HasInstalledResources ¶ added in v0.13.0
HasInstalledResources only returns true if at least one resource in s was returned successfully by the API server. A resource error status containing any error except "not found", or "no kind match" errors for Custom Resources, will result in HasInstalledResources returning false and the error.
Click to show internal directories.
Click to hide internal directories.