operator

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg Config, promreg *prometheus.Registry, promCliFactory promcli.ClientFactory, k8ssvc kubernetes.Service, metricssvc metrics.Service, logger log.Logger) (operator.Operator, error)

New returns pod terminator operator.

Types

type Config

type Config struct {
	// ResyncPeriod is the resync period of the controllers.
	ResyncPeriod time.Duration
	// ConcurretWorkers are number of workers to handle the events.
	ConcurretWorkers int
	// LabelSelector is the label selector to filter Kubernetes resources by labels.
	LabelSelector string
	// Namespace is the namespace to filter Kubernetes resources by a single namespace.
	Namespace string
}

Config is the configuration for the ci operator.

type Handler

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

Handler is the Operator handler.

func NewHandler

func NewHandler(outputerFact output.Factory, retrieverFact sli.RetrieverFactory, logger log.Logger) *Handler

NewHandler returns a new project handler

func (*Handler) Add

func (h *Handler) Add(_ context.Context, obj runtime.Object) error

Add will ensure the the ci builds and jobs are persisted.

func (*Handler) Delete

func (h *Handler) Delete(_ context.Context, name string) error

Delete handles the deletion of a release.

Jump to

Keyboard shortcuts

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