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) SetupWithManager ¶
func (r *ApiTokenReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type MetricsInitializer ¶
MetricsInitializer populates gauge metrics on startup to prevent empty series after restarts.
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 ¶
func (r *ReleaseChannelReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
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) 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) SetupWithManager ¶
func (r *UnleashReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Click to show internal directories.
Click to hide internal directories.