persona

package
v0.13.0-rc Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(mgr ctrl.Manager, l logging.Logger) error

Setup adds a controller that reconciles Namespaces.

Types

type Reconciler

type Reconciler struct {
	// contains filtered or unexported fields
}

Reconciler reconciles Namespaces

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(req reconcile.Request) (reconcile.Result, error)

Reconcile changes on Namespaces that may or may not have Packages managed RBAC labels.

Reconcile gets the Namespace with the requested namespace name with the management enabling label. When the label is found, we create matching clusterroles. When the label is not found, possibly removed, the namespace-persona clusterroles are deleted.

When a namespace is deleted, the clusterroles will be removed through garbage-collection using OwnerReferences.

Jump to

Keyboard shortcuts

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