Documentation
¶
Index ¶
- Constants
- type ImmutableClusterRoleBindingError
- type Manager
- func (r *Manager) EnsureClusterRole(roleName string) (err error)
- func (r *Manager) EnsureClusterRoleBinding() (err error)
- func (r *Manager) InjectClient(c client.Client) error
- func (r *Manager) Reconcile(ctx context.Context, request reconcile.Request) (res reconcile.Result, err error)
- func (r *Manager) SetupWithManager(mgr ctrl.Manager) (err error)
- func (r *Manager) Start(ctx context.Context) (err error)
Constants ¶
View Source
const ( ProvisionerRoleName = "capsule-namespace-provisioner" DeleterRoleName = "capsule-namespace-deleter" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImmutableClusterRoleBindingError ¶
type ImmutableClusterRoleBindingError struct { }
func (ImmutableClusterRoleBindingError) Error ¶
func (i ImmutableClusterRoleBindingError) Error() string
type Manager ¶
func (*Manager) EnsureClusterRole ¶
func (*Manager) EnsureClusterRoleBinding ¶
func (*Manager) InjectClient ¶
Using the Client interface, required by the Runnable interface
func (*Manager) Reconcile ¶
func (r *Manager) Reconcile(ctx context.Context, request reconcile.Request) (res reconcile.Result, err error)
This reconcile function is serving both ClusterRole and ClusterRoleBinding: that's ok, we're watching for multiple Resource kinds and we're just interested to the ones with the said name since they're bounded together.
func (*Manager) Start ¶
This is the Runnable function that is triggered upon Manager start-up to perform the first RBAC reconciliation since we're not creating empty CR and CRB upon Capsule installation: it's a run-once task, since the reconciliation is handled by the Reconciler implemented interface.
Click to show internal directories.
Click to hide internal directories.