Documentation
¶
Index ¶
Constants ¶
View Source
const ControllerName = "token-requestor"
ControllerName is the name of the controller.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reconciler ¶
type Reconciler struct {
SourceClient client.Client
TargetClient client.Client
ConcurrentSyncs int
Clock clock.Clock
JitterFunc func(time.Duration, float64) time.Duration
Class *string
APIAudiences []string
CAData []byte
// TargetNamespace is the namespace that requested ServiceAccounts should be created in.
// If TargetNamespace is empty, the controller uses the namespace specified in the
// serviceaccount.resources.gardener.cloud/namespace annotation.
TargetNamespace string
}
Reconciler requests and refreshes tokens via the TokenRequest API.
func (*Reconciler) AddToManager ¶
func (r *Reconciler) AddToManager(mgr manager.Manager, sourceCluster, targetCluster cluster.Cluster) error
AddToManager adds Reconciler to the given manager.
func (*Reconciler) Reconcile ¶
func (r *Reconciler) Reconcile(ctx context.Context, req reconcile.Request) (reconcile.Result, error)
Reconcile requests and populates tokens.
func (*Reconciler) SecretPredicate ¶
func (r *Reconciler) SecretPredicate() predicate.Predicate
SecretPredicate is the predicate for secrets.
Click to show internal directories.
Click to hide internal directories.