catalog

package
v0.10.1-1 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2022 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PackageLabel          = "olm.package"
	CatalogLabel          = "olm.catalog"
	CatalogNamespaceLabel = "olm.catalog.namespace"
	ChannelLabel          = "olm.channel"
)

Variables

View Source
var (
	ErrNilSubscription = errors.New("invalid Subscription object: <nil>")
)

Functions

This section is empty.

Types

type Operator

type Operator struct {
	*queueinformer.Operator
	// contains filtered or unexported fields
}

Operator represents a Kubernetes operator that executes InstallPlans by resolving dependencies in a catalog.

func NewOperator

func NewOperator(kubeconfigPath string, logger *logrus.Logger, wakeupInterval time.Duration, configmapRegistryImage, operatorNamespace string, watchedNamespaces ...string) (*Operator, error)

NewOperator creates a new Catalog Operator.

func (*Operator) ExecutePlan

func (o *Operator) ExecutePlan(plan *v1alpha1.InstallPlan) error

ExecutePlan applies a planned InstallPlan to a namespace.

func (*Operator) ResolvePlan

func (o *Operator) ResolvePlan(plan *v1alpha1.InstallPlan) error

ResolvePlan modifies an InstallPlan to contain a Plan in its Status field.

Jump to

Keyboard shortcuts

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