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 ¶
- Variables
- type Client
- func (c Client) DoCSVWait(ctx context.Context, key types.NamespacedName) error
- func (c Client) DoCreate(ctx context.Context, objs ...client.Object) error
- func (c Client) DoDelete(ctx context.Context, objs ...client.Object) error
- func (c Client) DoRolloutWait(ctx context.Context, key types.NamespacedName) error
- func (c Client) GetInstalledVersion(ctx context.Context, namespace string) (string, error)
- func (c Client) GetObjectsStatus(ctx context.Context, objs ...client.Object) Status
- type ResourceStatus
- type Status
Constants ¶
This section is empty.
Variables ¶
var ErrOLMNotInstalled = errors.New("no existing installation found")
var Scheme = scheme.Scheme
Functions ¶
This section is empty.
Types ¶
type Client ¶
func NewClientForConfig ¶ added in v1.1.0
func (Client) DoRolloutWait ¶
func (Client) GetInstalledVersion ¶ added in v0.11.0
GetInstalledVersion returns the OLM version installed in the namespace informed.
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.