Documentation ¶
Index ¶
Constants ¶
View Source
const (
ControllerName = "tenant-controller"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GroupsState ¶
func NewGroupsState ¶
func NewGroupsState() *GroupsState
func (*GroupsState) IsEmpty ¶
func (i *GroupsState) IsEmpty() bool
Returns true if no more groups exist in this tenant, which includes returning true if all remaining groups in the tenant are under deletion.
type ReconcileTenant ¶
type ReconcileTenant struct { // This client, initialized using mgr.Client() above, is a split client // that reads objects from the cache and writes to the apiserver Client client.Client Scheme *runtime.Scheme Log logr.Logger Config *config.ControllerConfig Recorder record.EventRecorder StatusPoller *polling.StatusPoller }
ReconcileTenant reconciles a Grafana object
func (*ReconcileTenant) Reconcile ¶
func (r *ReconcileTenant) Reconcile( ctx context.Context, request reconcile.Request, ) (result reconcile.Result, err error)
Reconcile reads the state of the cluster for a Tenant object and makes changes based on the state read and what's defined in its spec.
func (*ReconcileTenant) RemoveGOUI ¶
TODO(joe): this is temporary function to gradually cleanup all unneeded CustomeResources.
func (*ReconcileTenant) SetupWithManager ¶
func (r *ReconcileTenant) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type TenantReconciler ¶
func NewTenantReconciler ¶
func NewTenantReconciler(teardown bool, logger logr.Logger) *TenantReconciler
func (*TenantReconciler) Reconcile ¶
func (i *TenantReconciler) Reconcile(state TenantState, cr *v1alpha1.Tenant) common.DesiredState
type TenantState ¶
type TenantState struct {
Groups *GroupsState
}
func NewTenantState ¶
func NewTenantState() TenantState
Click to show internal directories.
Click to hide internal directories.