Documentation
¶
Index ¶
- Constants
- func IsManagedServiceAccount(obj interface{}) bool
- func IsServiceAccountBeingDeleted(obj interface{}) bool
- func MapServiceAccountToResources[T client.Object, L client.ObjectList](ctx context.Context, obj client.Object, c client.Client, listObj L, ...) []reconcile.Request
- func ServiceAccountDeletionPredicate() predicate.Predicate
- func SuppressOwnedResourceDeletes() predicate.Predicate
- type ClusterWorkloadServiceAccountReconciler
- type WSAResource
- type WSAStatus
- type WorkloadServiceAccountReconciler
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
Types ¶
type ClusterWorkloadServiceAccountReconciler ¶
type ClusterWorkloadServiceAccountReconciler struct {
client.Client
Scheme *runtime.Scheme
Engine rules.Engine
}
func (*ClusterWorkloadServiceAccountReconciler) SetupWithManager ¶
func (r *ClusterWorkloadServiceAccountReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type WSAResource ¶
type WSAResource interface {
client.Object
*agentoctopuscomv1beta1.WorkloadServiceAccount | *agentoctopuscomv1beta1.ClusterWorkloadServiceAccount
}
type WSAStatus ¶
type WSAStatus interface {
*agentoctopuscomv1beta1.WorkloadServiceAccountStatus | *agentoctopuscomv1beta1.ClusterWorkloadServiceAccountStatus
}
type WorkloadServiceAccountReconciler ¶
type WorkloadServiceAccountReconciler struct {
client.Client
Scheme *runtime.Scheme
Engine rules.Engine
}
func (*WorkloadServiceAccountReconciler) SetupWithManager ¶
func (r *WorkloadServiceAccountReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Click to show internal directories.
Click to hide internal directories.