namespace

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NamespaceReconciler

type NamespaceReconciler struct {
	client.Client
	Scheme      *runtime.Scheme
	NSEvents    chan event.GenericEvent
	SNSEvents   chan event.GenericEvent
	NamespaceDB *namespacedb.NamespaceDB
}

NamespaceReconciler reconciles a Namespace object

func (*NamespaceReconciler) Reconcile

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

func (*NamespaceReconciler) SetupWithManager

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

SetupWithManager sets up the controller by specifying the following: controller is managing the reconciliation of Namespace objects, it is watching for changes to the NSEvents channel and enqueues requests for the associated object. NamespacePredicate is used as an event filter, the predicate function checks if the object being watched is an SNS object or has a specific label. The controller also owns SNS objects.

type NamespaceValidator

type NamespaceValidator struct {
	Client  client.Client
	Decoder admission.Decoder
}

func (*NamespaceValidator) 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