controllers

package
v0.0.0-...-6067464 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApplicationName        = "korrel8r"
	ComponentName          = "engine"
	ConfigKey              = "korrel8r.yaml" // ConfigKey for the root configuration in ConfigMap.Data.
	ImageEnv               = "KORREL8R_IMAGE"
	VerboseEnv             = "KORREL8R_VERBOSE"
	ConditionTypeAvailable = "Available"
	ConditionTypeDegraded  = "Degraded"
	ReasonReconciling      = "Reconciling"
	ReasonReconciled       = "Reconciled"

	// K8s recommended label names
	App          = "app.kubernetes.io/"
	AppComponent = App + "component"
	AppInstance  = App + "instance"
	AppName      = App + "name"
	AppVersion   = App + "version"
)

Variables

View Source
var (
	// Static labels applied to all owned objects.
	CommonLabels = map[string]string{
		AppName:      ApplicationName,
		AppComponent: ComponentName,
	}
)

Functions

func AddToScheme

func AddToScheme(s *runtime.Scheme) error

AddToScheme adds all types needed by controllers.

func CacheOptions

func CacheOptions() cache.Options

CacheOptions for the controller manager to limit watches objects in the korrel8r app.

Types

type Korrel8rReconciler

type Korrel8rReconciler struct {
	client.Client
	Scheme   *runtime.Scheme
	Recorder record.EventRecorder
	// contains filtered or unexported fields
}

Korrel8rReconciler reconciles a Korrel8r object

func NewKorrel8rReconciler

func NewKorrel8rReconciler(image string, c client.Client, s *runtime.Scheme, e record.EventRecorder) *Korrel8rReconciler

func (*Korrel8rReconciler) Reconcile

func (r *Korrel8rReconciler) Reconcile(ctx context.Context, req reconcile.Request) (result reconcile.Result, err error)

Reconcile is the main reconcile loop

func (*Korrel8rReconciler) SetupWithManager

func (r *Korrel8rReconciler) SetupWithManager(mgr manager.Manager) error

type Owned

type Owned struct {
	ConfigMap      corev1.ConfigMap
	Deployment     appsv1.Deployment
	Route          routev1.Route
	Service        corev1.Service
	ServiceAccount corev1.ServiceAccount
}

Owned resources created by this operator

Jump to

Keyboard shortcuts

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