installer

package
v1.42.3 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: Apache-2.0 Imports: 24 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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?

Index

Constants

View Source
const (
	// TODO: switch back to latest once olm fixes their releases
	// https://github.com/operator-framework/operator-lifecycle-manager/issues/3419
	DefaultVersion = "0.28.0"
	DefaultTimeout = time.Minute * 2
	// DefaultOLMNamespace is the namespace where OLM is installed
	DefaultOLMNamespace = "olm"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*olmresourceclient.Client
	HTTPClient      http.Client
	BaseDownloadURL string
}

func ClientForConfig

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

func (Client) GetStatus

func (c Client) GetStatus(ctx context.Context, version string) (*olmresourceclient.Status, error)

func (Client) InstallVersion

func (c Client) InstallVersion(ctx context.Context, namespace, version string) (*olmresourceclient.Status, error)

func (Client) UninstallVersion

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

type Manager

type Manager struct {
	Client       *Client
	Version      string
	Timeout      time.Duration
	OLMNamespace string
	// contains filtered or unexported fields
}

func (*Manager) AddToFlagSet

func (m *Manager) AddToFlagSet(fs *pflag.FlagSet)

func (*Manager) Install

func (m *Manager) Install() error

func (*Manager) Status

func (m *Manager) Status() error

func (*Manager) Uninstall

func (m *Manager) Uninstall() error

Jump to

Keyboard shortcuts

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