controllers

package
v0.0.0-...-ac28c45 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RolebindingName = "namespace-admin"
	RoleRefKind     = "ClusterRole"
	RoleRefName     = "kyma-namespace-admin"

	SubjectStaticUser = "namespace.admin@kyma.cx"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type NamespaceReconciler

type NamespaceReconciler struct {
	client.Client
	Log                logr.Logger
	Scheme             *runtime.Scheme
	ExcludedNamespaces []string
	SubjectGroups      []string
	UseStaticConnector bool
}

NamespaceReconciler reconciles a Namespace object

func (*NamespaceReconciler) Reconcile

func (r *NamespaceReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

Reconcile performs the reconciling for a single request object that can be used to fetch the namespace it represents from the cache +kubebuilder:rbac:groups=core,resources=namespaces,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=core,resources=namespaces/status,verbs=get;update;patch;watch +kubebuilder:rbac:groups=rbac.authorization.k8s.io,resources=rolebindings,verbs=create;update;patch;delete

func (*NamespaceReconciler) SetupWithManager

func (r *NamespaceReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager adds the reconciler to the manager, so that it gets started when the manager is started

Jump to

Keyboard shortcuts

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