controllers

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2022 License: Apache-2.0 Imports: 31 Imported by: 0

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