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.
Click to show internal directories.
Click to hide internal directories.