controller

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceAccountCleanupFinalizer = "octopus.com/serviceaccount-cleanup"
	ServiceAccountFinalizer        = "octopus.com/serviceaccount"
	ManagedByLabel                 = "octopus.com/managed-by"
	ManagedByValue                 = "permissions-controller"
	ConditionTypeReady             = "Ready"
	ReasonReconcileSuccess         = "ReconcileSuccess"
	ReasonReconcileFailed          = "ReconcileFailed"
)

Variables

This section is empty.

Functions

func IsManagedServiceAccount

func IsManagedServiceAccount(obj interface{}) bool

func IsServiceAccountBeingDeleted

func IsServiceAccountBeingDeleted(obj interface{}) bool

func MapServiceAccountToResources

func MapServiceAccountToResources[T client.Object, L client.ObjectList](
	ctx context.Context,
	obj client.Object,
	c client.Client,
	listObj L,
	extractItems func(L) []T,
	resourceType string,
) []reconcile.Request

func ServiceAccountDeletionPredicate

func ServiceAccountDeletionPredicate() predicate.Predicate

func SuppressOwnedResourceDeletes

func SuppressOwnedResourceDeletes() predicate.Predicate

Types

type ClusterWorkloadServiceAccountReconciler

type ClusterWorkloadServiceAccountReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	Engine rules.Engine
}

func (*ClusterWorkloadServiceAccountReconciler) Reconcile

func (*ClusterWorkloadServiceAccountReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type WorkloadServiceAccountReconciler

type WorkloadServiceAccountReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	Engine rules.Engine
}

func (*WorkloadServiceAccountReconciler) Reconcile

func (*WorkloadServiceAccountReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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