controllers

package
v0.0.0-...-50978b4 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 35 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Finalizer = "unleasherator.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 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