controllers

package
v1.17.12 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 32 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
}

NamespaceScopeReconciler reconciles a NamespaceScope object

func (*NamespaceScopeReconciler) CSVReconcile added in v1.2.0

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

func (*NamespaceScopeReconciler) CreateRole

func (r *NamespaceScopeReconciler) CreateRole(roleNames []string, labels map[string]string, saName, fromNs, toNs string) error

func (*NamespaceScopeReconciler) CreateRoleBinding

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

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) Reconcile

func (r *NamespaceScopeReconciler) Reconcile(req ctrl.Request) (ctrl.Result, 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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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