controller

package
v0.0.0-...-fe2476e Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: MIT Imports: 49 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Finalizer = "unleasherator.nais.io/finalizer"
)
View Source
const (
	ReleaseChannelFinalizer = "releasechannel.unleash.nais.io/finalizer"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiTokenReconciler

type ApiTokenReconciler struct {
	client.Client
	Scheme            *runtime.Scheme
	Recorder          record.EventRecorder
	OperatorNamespace string

	// ApiTokenNameSuffix is the suffix used for the ApiToken names
	// in order to avoid name collisions when multiple clusters are
	// using the same Unleash instance.
	ApiTokenNameSuffix string

	// ApiTokenUpdateEnabled enables updating tokens in Unleash since
	// tokens in Unleash are immutable. This is a feature flag that
	// can be enabled in the operator config.
	ApiTokenUpdateEnabled bool

	Tracer trace.Tracer
}

ApiTokenReconciler reconciles a ApiToken object

func (*ApiTokenReconciler) Reconcile

func (r *ApiTokenReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*ApiTokenReconciler) SetupWithManager

func (r *ApiTokenReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type MetricsInitializer

type MetricsInitializer struct {
	Client client.Client
}

MetricsInitializer populates gauge metrics on startup to prevent empty series after restarts.

func (*MetricsInitializer) Start

func (m *MetricsInitializer) Start(ctx context.Context) error

type ReleaseChannelReconciler

type ReleaseChannelReconciler struct {
	client.Client
	Scheme         *runtime.Scheme
	Recorder       record.EventRecorder
	Tracer         trace.Tracer
	DecisionEngine *statemachine.DecisionEngine
}

ReleaseChannelReconciler reconciles a ReleaseChannel object

func (*ReleaseChannelReconciler) Reconcile

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*ReleaseChannelReconciler) SetupWithManager

func (r *ReleaseChannelReconciler) SetupWithManager(mgr ctrl.Manager) error

type RemoteUnleashFederation

type RemoteUnleashFederation struct {
	Enabled     bool
	ClusterName string
	Subscriber  federation.Subscriber
}

type RemoteUnleashReconciler

type RemoteUnleashReconciler struct {
	client.Client
	Scheme            *runtime.Scheme
	Recorder          record.EventRecorder
	OperatorNamespace string
	Timeout           config.TimeoutConfig
	Federation        RemoteUnleashFederation
	Tracer            trace.Tracer
}

RemoteUnleashReconciler reconciles a RemoteUnleash object

func (*RemoteUnleashReconciler) FederationSubscribe

func (r *RemoteUnleashReconciler) FederationSubscribe(ctx context.Context) error

func (*RemoteUnleashReconciler) Reconcile

func (r *RemoteUnleashReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*RemoteUnleashReconciler) SetupWithManager

func (r *RemoteUnleashReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type UnleashFederation

type UnleashFederation struct {
	Enabled   bool
	Publisher federation.Publisher
}

type UnleashReconciler

type UnleashReconciler struct {
	client.Client
	Scheme            *runtime.Scheme
	Recorder          record.EventRecorder
	OperatorNamespace string
	Federation        UnleashFederation
	Tracer            trace.Tracer
}

UnleashReconciler reconciles a Unleash object

func (*UnleashReconciler) Reconcile

func (r *UnleashReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*UnleashReconciler) SetupWithManager

func (r *UnleashReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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