controller

package
v0.0.0-...-a50f772 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: BSD-3-Clause, Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// FeatureMap is the map containing features and their status for the current instance of nats-operator.
	FeatureMap features.FeatureMap
	// NatsOperatorNamespace is the namespace under which the current instance of nats-operator is running.
	NatsOperatorNamespace string
	PVProvisioner         string
	KubeCli               kubernetes.Interface
	KubeConfig            *rest.Config
	KubeExtCli            extsclient.Interface
	OperatorCli           natsclient.Interface
}

func (*Config) Validate

func (c *Config) Validate() error

type Controller

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

Controller is the controller for NatsCluster resources.

func NewNatsClusterController

func NewNatsClusterController(cfg Config) *Controller

func (*Controller) Run

func (c *Controller) Run(ctx context.Context) error

type GenericController

type GenericController interface {
	// Run instructs the workers to start processing items from the queue.
	Run(stopCh <-chan struct{}) error
}

GenericController represents a generic controller that handles Kubernetes resources.

Jump to

Keyboard shortcuts

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