controllers

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModelAnnotationPrefix  = "openfga.zeiss.com/model."
	ModelUpdatedAnnotation = ModelAnnotationPrefix + "updated-at"
)
View Source
const (
	EventRecorderLabel = "openfga-store-controller"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Clock

type Clock interface {
	Now() time.Time
}

type EventReason

type EventReason string
const (
	EventReasonModelCreated EventReason = "ModelCreated"
	EventReasonModelUpdated EventReason = "ModelUpdated"
	EventReasonModelDeleted EventReason = "ModelDeleted"
	EventReasonModelFailed  EventReason = "ModelFailed"
)
const (
	EventReasonStoreFetchFailed  EventReason = "StoreFetchFailed"
	EventReasonStoreCreateFailed EventReason = "StoreCreateFailed"
	EventReasonStoreUpdateFailed EventReason = "StoreUpdateFailed"
	EventReasonStoreUpdated      EventReason = "StoreUpdated"
)
const (
	EventReasonDeploymentEnvUpdated EventReason = "DeploymentEnvUpdated"
)

type ModelReconciler

type ModelReconciler struct {
	client.Client
	Clock
	FGA      *fga.Client
	Scheme   *runtime.Scheme
	Recorder record.EventRecorder
}

ModelReconciler ...

func NewModelReconciler

func NewModelReconciler(fga *fga.Client, mgr ctrl.Manager) *ModelReconciler

NewModelReconciler ...

func (*ModelReconciler) Reconcile

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

Reconcile ...

func (*ModelReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type PodReconciler

type PodReconciler struct {
	client.Client
	Clock
	FGA      *fga.Client
	Scheme   *runtime.Scheme
	Recorder record.EventRecorder
}

PodReconciler ...

func NewPodReconciler

func NewPodReconciler(fga *fga.Client, mgr ctrl.Manager) *PodReconciler

NewPodReconciler ...

func (*PodReconciler) Reconcile

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

Reconcile ...

func (*PodReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type StoreReconciler

type StoreReconciler struct {
	client.Client
	Clock
	FGA      *fga.Client
	Scheme   *runtime.Scheme
	Recorder record.EventRecorder
}

StoreReconciler ...

func NewStoreReconciler

func NewStoreReconciler(fga *fga.Client, mgr ctrl.Manager) *StoreReconciler

NewStoreReconciler ...

func (*StoreReconciler) Reconcile

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

Reconcile ...

func (*StoreReconciler) SetupWithManager

func (r *StoreReconciler) 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