Documentation ¶
Index ¶
- type NamespaceScopeReconciler
- func (r *NamespaceScopeReconciler) CSVReconcile(req ctrl.Request) (ctrl.Result, error)
- func (r *NamespaceScopeReconciler) CreateRole(roleNames []string, labels map[string]string, saName, fromNs, toNs string) error
- func (r *NamespaceScopeReconciler) CreateRoleBinding(roleNames []string, labels map[string]string, saName, fromNs, toNs string) error
- func (r *NamespaceScopeReconciler) CreateRuntimeRoleToNamespace(instance *operatorv1.NamespaceScope, toNs string, ...) error
- func (r *NamespaceScopeReconciler) DeleteAllRbac(instance *operatorv1.NamespaceScope) error
- func (r *NamespaceScopeReconciler) DeleteRbacFromUnmanagedNamespace(instance *operatorv1.NamespaceScope) error
- func (r *NamespaceScopeReconciler) DeleteRole(labels map[string]string, toNs string) error
- func (r *NamespaceScopeReconciler) DeleteRoleBinding(labels map[string]string, toNs string) error
- func (r *NamespaceScopeReconciler) GetRolesFromNamespace(namespace string) ([]rbacv1.Role, error)
- func (r *NamespaceScopeReconciler) GetRolesFromServiceAccount(sa string, namespace string) ([]string, error)
- func (r *NamespaceScopeReconciler) GetServiceAccountFromNamespace(instance *operatorv1.NamespaceScope, namespace string) ([]string, error)
- func (r *NamespaceScopeReconciler) PushRbacToNamespace(instance *operatorv1.NamespaceScope) error
- func (r *NamespaceScopeReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)
- func (r *NamespaceScopeReconciler) RestartPods(labels map[string]string, cm *corev1.ConfigMap, namespace string) error
- func (r *NamespaceScopeReconciler) SetupWithManager(mgr ctrl.Manager) error
- func (r *NamespaceScopeReconciler) UpdateConfigMap(instance *operatorv1.NamespaceScope) error
- func (r *NamespaceScopeReconciler) UpdateStatus(instance *operatorv1.NamespaceScope) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NamespaceScopeReconciler ¶
type NamespaceScopeReconciler struct { client.Reader client.Client Recorder record.EventRecorder Scheme *runtime.Scheme }
NamespaceScopeReconciler reconciles a NamespaceScope object
func (*NamespaceScopeReconciler) CSVReconcile ¶ added in v1.2.0
func (*NamespaceScopeReconciler) CreateRole ¶
func (*NamespaceScopeReconciler) CreateRoleBinding ¶
func (*NamespaceScopeReconciler) CreateRuntimeRoleToNamespace ¶ added in v1.11.0
func (r *NamespaceScopeReconciler) CreateRuntimeRoleToNamespace(instance *operatorv1.NamespaceScope, toNs string, summarizedRules []rbacv1.PolicyRule) error
func (*NamespaceScopeReconciler) DeleteAllRbac ¶
func (r *NamespaceScopeReconciler) DeleteAllRbac(instance *operatorv1.NamespaceScope) error
When delete NamespaceScope instance, cleanup all RBAC resources
func (*NamespaceScopeReconciler) DeleteRbacFromUnmanagedNamespace ¶
func (r *NamespaceScopeReconciler) DeleteRbacFromUnmanagedNamespace(instance *operatorv1.NamespaceScope) error
func (*NamespaceScopeReconciler) DeleteRole ¶
func (r *NamespaceScopeReconciler) DeleteRole(labels map[string]string, toNs string) error
func (*NamespaceScopeReconciler) DeleteRoleBinding ¶
func (r *NamespaceScopeReconciler) DeleteRoleBinding(labels map[string]string, toNs string) error
func (*NamespaceScopeReconciler) GetRolesFromNamespace ¶ added in v1.11.0
func (r *NamespaceScopeReconciler) GetRolesFromNamespace(namespace string) ([]rbacv1.Role, error)
func (*NamespaceScopeReconciler) GetRolesFromServiceAccount ¶
func (r *NamespaceScopeReconciler) GetRolesFromServiceAccount(sa string, namespace string) ([]string, error)
func (*NamespaceScopeReconciler) GetServiceAccountFromNamespace ¶
func (r *NamespaceScopeReconciler) GetServiceAccountFromNamespace(instance *operatorv1.NamespaceScope, namespace string) ([]string, error)
func (*NamespaceScopeReconciler) PushRbacToNamespace ¶
func (r *NamespaceScopeReconciler) PushRbacToNamespace(instance *operatorv1.NamespaceScope) error
func (*NamespaceScopeReconciler) RestartPods ¶
func (r *NamespaceScopeReconciler) RestartPods(labels map[string]string, cm *corev1.ConfigMap, namespace string) error
Restart pods in specific namespace with the matching labels
func (*NamespaceScopeReconciler) SetupWithManager ¶
func (r *NamespaceScopeReconciler) SetupWithManager(mgr ctrl.Manager) error
func (*NamespaceScopeReconciler) UpdateConfigMap ¶
func (r *NamespaceScopeReconciler) UpdateConfigMap(instance *operatorv1.NamespaceScope) error
func (*NamespaceScopeReconciler) UpdateStatus ¶
func (r *NamespaceScopeReconciler) UpdateStatus(instance *operatorv1.NamespaceScope) error
Click to show internal directories.
Click to hide internal directories.