olm

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2019 License: Apache-2.0 Imports: 25 Imported by: 0

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

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

type Client struct {
	KubeClient client.Client
}

func ClientForConfig

func ClientForConfig(cfg *rest.Config) (*Client, error)

func (Client) DoCSVWait

func (c Client) DoCSVWait(ctx context.Context, key types.NamespacedName) error

func (Client) DoCreate

func (c Client) DoCreate(ctx context.Context, objs ...runtime.Object) error

func (Client) DoDelete

func (c Client) DoDelete(ctx context.Context, objs ...runtime.Object) error

func (Client) DoRolloutWait

func (c Client) DoRolloutWait(ctx context.Context, key types.NamespacedName) error

func (Client) GetInstalledVersion added in v0.11.0

func (c Client) GetInstalledVersion(ctx context.Context) (string, error)

func (Client) GetObjectsStatus

func (c Client) GetObjectsStatus(ctx context.Context, objs ...runtime.Object) Status

type ResourceStatus

type ResourceStatus struct {
	NamespacedName types.NamespacedName
	Resource       *unstructured.Unstructured
	GVK            schema.GroupVersionKind
	Error          error
}

type Status

type Status struct {
	Resources []ResourceStatus
}

func (Status) HasExistingResources

func (s Status) HasExistingResources() bool

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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