controllers

package
v1.0.0-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NamespaceScopeManagedRoleName        = "namespacescope-managed-role-from-"
	NamespaceScopeManagedRoleBindingName = "namespacescope-managed-rolebinding-from-"
	NamespaceScopeConfigmapName          = "namespace-scope"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type NamespaceScopeReconciler

type NamespaceScopeReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

NamespaceScopeReconciler reconciles a NamespaceScope object

func (*NamespaceScopeReconciler) CreateRole

func (r *NamespaceScopeReconciler) CreateRole(fromNs, toNs string) error

func (*NamespaceScopeReconciler) CreateUpdateRoleBinding

func (r *NamespaceScopeReconciler) CreateUpdateRoleBinding(saNames []string, fromNs, toNs string) error

func (*NamespaceScopeReconciler) DeleteRbacFromUnmanagedNamespace

func (r *NamespaceScopeReconciler) DeleteRbacFromUnmanagedNamespace(instance *operatorv1.NamespaceScope) error

func (*NamespaceScopeReconciler) DeleteRole

func (r *NamespaceScopeReconciler) DeleteRole(fromNs, toNs string) error

func (*NamespaceScopeReconciler) DeleteRoleBinding

func (r *NamespaceScopeReconciler) DeleteRoleBinding(fromNs, toNs string) error

func (*NamespaceScopeReconciler) GetServiceAccountFromNamespace

func (r *NamespaceScopeReconciler) GetServiceAccountFromNamespace(labels map[string]string, namespace string) ([]string, error)

func (*NamespaceScopeReconciler) InitConfigMap

func (r *NamespaceScopeReconciler) InitConfigMap(instance *operatorv1.NamespaceScope) 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, 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) UpdateRoleBinding

func (r *NamespaceScopeReconciler) UpdateRoleBinding(newRoleBinding *rbacv1.RoleBinding) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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