rolebinding

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoesRBFinalizerExist

func DoesRBFinalizerExist(roleBinding client.Object) bool

DoesRBFinalizerExist returns true if a roleBinding has the HNS finalizer.

Types

type RoleBindingReconciler

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

RoleBindingReconciler reconciles a RoleBinding object.

func (*RoleBindingReconciler) Reconcile

func (r *RoleBindingReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*RoleBindingReconciler) SetupWithManager

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

SetupWithManager sets up the controller by specifying the following: indexes the "rb.propagate" field for RoleBindings, filters events to only include RoleBindings that are part of a namespace with the "danav1.Hns" label, and then watches for events on RoleBindings.

type RoleBindingValidator

type RoleBindingValidator struct {
	Client  client.Client
	Decoder *admission.Decoder
}

func (*RoleBindingValidator) Handle

Handle implements the validation webhook.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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