Documentation ¶
Index ¶
- func Add(mgr manager.Manager) error
- func AddManager(mgr manager.Manager, r reconcile.Reconciler) error
- func SetupNewReconciler(mgr manager.Manager) reconcile.Reconciler
- func SetupTestReconcile(inner reconcile.Reconciler) (reconcile.Reconciler, chan reconcile.Request)
- func StartTestManager(mgr manager.Manager, g *gomega.GomegaWithT) (chan struct{}, *sync.WaitGroup)
- type ReconcileTenant
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Add ¶
Add creates a new Tenant Controller and adds it to the Manager with default RBAC. The Manager will set fields on the Controller and Start it when the Manager is Started.
func AddManager ¶
func AddManager(mgr manager.Manager, r reconcile.Reconciler) error
func SetupNewReconciler ¶
func SetupNewReconciler(mgr manager.Manager) reconcile.Reconciler
func SetupTestReconcile ¶
func SetupTestReconcile(inner reconcile.Reconciler) (reconcile.Reconciler, chan reconcile.Request)
SetupTestReconcile returns a reconcile.Reconcile implementation that delegates to inner and writes the request to requests after Reconcile is finished.
func StartTestManager ¶
StartTestManager adds recFn
Types ¶
type ReconcileTenant ¶
ReconcileTenant reconciles a Tenant object
func (*ReconcileTenant) Reconcile ¶
Reconcile reads that state of the cluster for a Tenant object and makes changes based on the state read and what is in the Tenant.Spec Automatically generate RBAC rules to allow the Controller to read and write related resources +kubebuilder:rbac:groups=core,resources=namespaces,verbs=get;list;watch;create +kubebuilder:rbac:groups=rbac.authorization.k8s.io,resources=clusterroles,verbs=get;list;create;update;patch +kubebuilder:rbac:groups=rbac.authorization.k8s.io,resources=clusterrolebindings,verbs=get;list;create;update;patch +kubebuilder:rbac:groups=rbac.authorization.k8s.io,resources=roles,verbs=get;list;create;update;patch +kubebuilder:rbac:groups=rbac.authorization.k8s.io,resources=rolebindings,verbs=get;list;create;update;patch +kubebuilder:rbac:groups=tenancy.x-k8s.io,resources=tenants,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=tenancy.x-k8s.io,resources=tenants/status,verbs=get;update;patch