ocibuilder

package
v0.0.0-...-b7fcf81 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller listens for new ocibuilder resources and hands off handling of each resource on the queue to the operator

func NewController

func NewController(rest *rest.Config, config *ControllerConfig, logger *logrus.Logger, configmap, namespace string) *Controller

NewController creates a new controller

func (*Controller) ResyncConfig

func (ctrl *Controller) ResyncConfig(namespace string) error

ResyncConfig reloads the controller config from the configmap

func (*Controller) Run

func (ctrl *Controller) Run(ctx context.Context, gwThreads, eventThreads int)

Run executes the controller

type ControllerConfig

type ControllerConfig struct {
	// InstanceID is a label selector to limit the controller's watch of ocibuilders to a specific instance.
	InstanceID string
	// namespace is a label selector filter to limit controller's watch to specific namespace
	Namespace string
}

ControllerConfig contain the configuration settings for the controller

Jump to

Keyboard shortcuts

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