catalog

package
v3.11.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2018 License: Apache-2.0 Imports: 22 Imported by: 1

Documentation

Index

Constants

View Source
const (
	PackageLabel = "alm-package"
	CatalogLabel = "alm-catalog"
	ChannelLabel = "alm-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, wakeupInterval time.Duration, 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