controllers

package
v4.3.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2026 License: Apache-2.0 Imports: 37 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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
	// contains filtered or unexported fields
}

NamespaceScopeReconciler reconciles a NamespaceScope object

func (*NamespaceScopeReconciler) CSVReconcile

func (r *NamespaceScopeReconciler) CSVReconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

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 (r *NamespaceScopeReconciler) CreateRole(ctx context.Context, roleNames []string, labels map[string]string, saName, fromNs, toNs string, allowSubsetProjection bool) ([]string, error)

func (*NamespaceScopeReconciler) CreateRoleBinding

func (r *NamespaceScopeReconciler) CreateRoleBinding(ctx context.Context, roleNames []string, labels map[string]string, saName, fromNs, toNs string) error

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 (r *NamespaceScopeReconciler) DeleteRole(ctx context.Context, labels map[string]string, toNs string) error

func (*NamespaceScopeReconciler) DeleteRoleBinding

func (r *NamespaceScopeReconciler) DeleteRoleBinding(ctx context.Context, labels map[string]string, toNs string) error

func (*NamespaceScopeReconciler) GetRolesFromNamespace

func (r *NamespaceScopeReconciler) GetRolesFromNamespace(ctx context.Context, instance *operatorv1.NamespaceScope, namespace string) ([]rbacv1.Role, error)

func (*NamespaceScopeReconciler) GetRolesFromServiceAccount

func (r *NamespaceScopeReconciler) GetRolesFromServiceAccount(ctx context.Context, sa string, namespace string) ([]string, error)

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) ([]string, error)

func (*NamespaceScopeReconciler) Reconcile

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

func (*NamespaceScopeReconciler) UpdateUnprojectedRolesStatus added in v4.3.4

func (r *NamespaceScopeReconciler) UpdateUnprojectedRolesStatus(ctx context.Context, instance *operatorv1.NamespaceScope, unprojectedRoles []string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL