olm

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2021 License: Apache-2.0 Imports: 57 Imported by: 1

Documentation

Index

Constants

View Source
const (
	AdminSuffix = "admin"
	EditSuffix  = "edit"
	ViewSuffix  = "view"
)
View Source
const (
	// Name of packageserver API service
	PackageserverName = "v1.packages.operators.coreos.com"
)

Variables

View Source
var (
	ErrRequirementsNotMet      = errors.New("requirements were not met")
	ErrCRDOwnerConflict        = errors.New("conflicting CRD owner in namespace")
	ErrAPIServiceOwnerConflict = errors.New("unable to adopt APIService")
)
View Source
var (
	AdminVerbs     = []string{"*"}
	EditVerbs      = []string{"create", "update", "patch", "delete"}
	ViewVerbs      = []string{"get", "list", "watch"}
	Suffices       = []string{AdminSuffix, EditSuffix, ViewSuffix}
	VerbsForSuffix = map[string][]string{
		AdminSuffix: AdminVerbs,
		EditSuffix:  EditVerbs,
		ViewSuffix:  ViewVerbs,
	}
)

Functions

This section is empty.

Types

type Operator

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

func NewOperator

func NewOperator(ctx context.Context, options ...OperatorOption) (*Operator, error)

func (*Operator) GetCSVSetGenerator

func (a *Operator) GetCSVSetGenerator() csvutility.SetGenerator

func (*Operator) GetReplaceFinder

func (a *Operator) GetReplaceFinder() csvutility.ReplaceFinder

func (*Operator) RegisterCSVWatchNotification

func (a *Operator) RegisterCSVWatchNotification(csvNotification csvutility.WatchNotification)

type OperatorOption

type OperatorOption func(*operatorConfig)

func WithAPILabeler

func WithAPILabeler(apiLabeler labeler.Labeler) OperatorOption

func WithAPIReconciler

func WithAPIReconciler(apiReconciler resolver.APIIntersectionReconciler) OperatorOption

func WithClock

func WithClock(clock utilclock.Clock) OperatorOption

func WithConfigClient

func WithConfigClient(configClient configv1client.Interface) OperatorOption

func WithExternalClient

func WithExternalClient(externalClient versioned.Interface) OperatorOption

func WithLogger

func WithLogger(logger *logrus.Logger) OperatorOption

func WithOperatorClient

func WithOperatorClient(operatorClient operatorclient.ClientInterface) OperatorOption

func WithOperatorNamespace

func WithOperatorNamespace(namespace string) OperatorOption

func WithRestConfig

func WithRestConfig(restConfig *rest.Config) OperatorOption

func WithResyncPeriod

func WithResyncPeriod(resyncPeriod func() time.Duration) OperatorOption

func WithStrategyResolver

func WithStrategyResolver(strategyResolver install.StrategyResolverInterface) OperatorOption

func WithWatchedNamespaces

func WithWatchedNamespaces(namespaces ...string) OperatorOption

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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