Documentation ¶
Index ¶
- type NamespaceScopeReconciler
- func (r *NamespaceScopeReconciler) CSVReconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *NamespaceScopeReconciler) CheckListDifference(ctx context.Context, instance *operatorv1.NamespaceScope, ...) (ctrl.Result, error)
- func (r *NamespaceScopeReconciler) CreateRole(ctx context.Context, roleNames []string, labels map[string]string, ...) error
- func (r *NamespaceScopeReconciler) CreateRoleBinding(ctx context.Context, roleNames []string, labels map[string]string, ...) error
- func (r *NamespaceScopeReconciler) CreateRuntimeRoleToNamespace(ctx context.Context, instance *operatorv1.NamespaceScope, toNs string, ...) error
- func (r *NamespaceScopeReconciler) DeleteAllRbac(ctx context.Context, instance *operatorv1.NamespaceScope) error
- func (r *NamespaceScopeReconciler) DeleteRbacFromUnmanagedNamespace(ctx context.Context, instance *operatorv1.NamespaceScope) error
- func (r *NamespaceScopeReconciler) DeleteRole(ctx context.Context, labels map[string]string, toNs string) error
- func (r *NamespaceScopeReconciler) DeleteRoleBinding(ctx context.Context, labels map[string]string, toNs string) error
- func (r *NamespaceScopeReconciler) GetRolesFromNamespace(ctx context.Context, instance *operatorv1.NamespaceScope, namespace string) ([]rbacv1.Role, error)
- func (r *NamespaceScopeReconciler) GetRolesFromServiceAccount(ctx context.Context, sa string, namespace string) ([]string, error)
- func (r *NamespaceScopeReconciler) GetServiceAccountFromNamespace(ctx context.Context, instance *operatorv1.NamespaceScope, namespace string) ([]string, error)
- func (r *NamespaceScopeReconciler) PushRbacToNamespace(ctx context.Context, instance *operatorv1.NamespaceScope) error
- func (r *NamespaceScopeReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *NamespaceScopeReconciler) RestartPods(ctx context.Context, labels map[string]string, cm *corev1.ConfigMap, ...) error
- func (r *NamespaceScopeReconciler) SetupWithManager(mgr ctrl.Manager) error
- func (r *NamespaceScopeReconciler) UpdateConfigMap(ctx context.Context, instance *operatorv1.NamespaceScope) error
- func (r *NamespaceScopeReconciler) UpdateStatus(ctx context.Context, 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 Config *rest.Config }
NamespaceScopeReconciler reconciles a NamespaceScope object
func (*NamespaceScopeReconciler) CSVReconcile ¶
func (*NamespaceScopeReconciler) CheckListDifference ¶
func (r *NamespaceScopeReconciler) CheckListDifference(ctx context.Context, instance *operatorv1.NamespaceScope, originalInstance *operatorv1.NamespaceScope, managedCSVList []string, managedWebhookList []string, patchedCSVList []string, patchedWebhookList []string) (ctrl.Result, error)
func (*NamespaceScopeReconciler) CreateRole ¶
func (*NamespaceScopeReconciler) CreateRoleBinding ¶
func (*NamespaceScopeReconciler) CreateRuntimeRoleToNamespace ¶
func (r *NamespaceScopeReconciler) CreateRuntimeRoleToNamespace(ctx context.Context, instance *operatorv1.NamespaceScope, toNs string, summarizedRules []rbacv1.PolicyRule) error
func (*NamespaceScopeReconciler) DeleteAllRbac ¶
func (r *NamespaceScopeReconciler) DeleteAllRbac(ctx context.Context, instance *operatorv1.NamespaceScope) error
When delete NamespaceScope instance, cleanup all RBAC resources
func (*NamespaceScopeReconciler) DeleteRbacFromUnmanagedNamespace ¶
func (r *NamespaceScopeReconciler) DeleteRbacFromUnmanagedNamespace(ctx context.Context, instance *operatorv1.NamespaceScope) error
func (*NamespaceScopeReconciler) DeleteRole ¶
func (*NamespaceScopeReconciler) DeleteRoleBinding ¶
func (*NamespaceScopeReconciler) GetRolesFromNamespace ¶
func (r *NamespaceScopeReconciler) GetRolesFromNamespace(ctx context.Context, instance *operatorv1.NamespaceScope, namespace string) ([]rbacv1.Role, error)
func (*NamespaceScopeReconciler) GetRolesFromServiceAccount ¶
func (*NamespaceScopeReconciler) GetServiceAccountFromNamespace ¶
func (r *NamespaceScopeReconciler) GetServiceAccountFromNamespace(ctx context.Context, instance *operatorv1.NamespaceScope, namespace string) ([]string, error)
func (*NamespaceScopeReconciler) PushRbacToNamespace ¶
func (r *NamespaceScopeReconciler) PushRbacToNamespace(ctx context.Context, instance *operatorv1.NamespaceScope) error
func (*NamespaceScopeReconciler) RestartPods ¶
func (r *NamespaceScopeReconciler) RestartPods(ctx context.Context, 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(ctx context.Context, instance *operatorv1.NamespaceScope) error
func (*NamespaceScopeReconciler) UpdateStatus ¶
func (r *NamespaceScopeReconciler) UpdateStatus(ctx context.Context, instance *operatorv1.NamespaceScope) error
Click to show internal directories.
Click to hide internal directories.