Documentation
¶
Index ¶
- func AddTasks(existingAnnotations map[string]string, tasksToAdd ...string)
- func BoolPtrDerefOr(b *bool, defaultValue bool) bool
- func CreateWorker(ctx context.Context, queue workqueue.RateLimitingInterface, ...)
- func DeprecatedCreateWorker(ctx context.Context, queue workqueue.RateLimitingInterface, ...)
- func DetermineBackupBucketAssociations(ctx context.Context, c client.Client, seedName string) ([]string, error)
- func DetermineSecretBindingAssociations(quota *gardencorev1alpha1.Quota, ...) ([]string, error)
- func DetermineShootAssociations(obj interface{}, shootLister gardencorelisters.ShootLister) ([]string, error)
- func EnsureFinalizer(ctx context.Context, c client.Client, obj kutil.Object, finalizer string) error
- func HasTask(existingAnnotations map[string]string, taskToCheck string) bool
- func RemoveAllTasks(existingAnnotations map[string]string)
- func RemoveFinalizer(ctx context.Context, c client.Client, obj kutil.Object, finalizer string) error
- func RemoveGardenerFinalizer(ctx context.Context, c client.Client, obj kutil.Object) error
- func RemoveGardenerOperationAnnotation(ctx context.Context, backoff wait.Backoff, cli client.Client, obj kutil.Object) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolPtrDerefOr ¶
BoolPtrDerefOr dereferences the given bool if it's non-nil. Otherwise, returns the default.
func CreateWorker ¶
func CreateWorker(ctx context.Context, queue workqueue.RateLimitingInterface, resourceType string, reconciler reconcile.Reconciler, waitGroup *sync.WaitGroup, workerCh chan int)
CreateWorker creates and runs a worker thread that just processes items in the specified queue. The worker will run until stopCh is closed. The worker will be added to the wait group when started and marked done when finished.
func DeprecatedCreateWorker ¶
func DeprecatedCreateWorker(ctx context.Context, queue workqueue.RateLimitingInterface, resourceType string, reconciler func(key string) error, waitGroup *sync.WaitGroup, workerCh chan int)
DeprecatedCreateWorker creates and runs a worker thread that just processes items in the specified queue. The worker will run until stopCh is closed. The worker will be added to the wait group when started and marked done when finished. Deprecated: Use CreateWorker instead.
func DetermineBackupBucketAssociations ¶
func DetermineBackupBucketAssociations(ctx context.Context, c client.Client, seedName string) ([]string, error)
DetermineBackupBucketAssociations determine the BackupBucket resources which are associated to seed with name <seedName>
func DetermineSecretBindingAssociations ¶
func DetermineSecretBindingAssociations(quota *gardencorev1alpha1.Quota, bindingLister gardencorelisters.SecretBindingLister) ([]string, error)
DetermineSecretBindingAssociations gets a <bindingLister> to determine the SecretBinding resources which are associated to given Quota <obj>.
func DetermineShootAssociations ¶
func DetermineShootAssociations(obj interface{}, shootLister gardencorelisters.ShootLister) ([]string, error)
DetermineShootAssociations gets a <shootLister> to determine the Shoots resources which are associated to given <obj> (either a CloudProfile a or a Seed object).
func EnsureFinalizer ¶
func EnsureFinalizer(ctx context.Context, c client.Client, obj kutil.Object, finalizer string) error
EnsureFinalizer ensure the <finalizer> is present for the object.
func RemoveAllTasks ¶
RemoveAllTasks removes the ShootTasks annotation from the passed map.
func RemoveFinalizer ¶
func RemoveFinalizer(ctx context.Context, c client.Client, obj kutil.Object, finalizer string) error
RemoveFinalizer removes the <finalizer> from the object.
func RemoveGardenerFinalizer ¶
RemoveGardenerFinalizer removes the gardener finalizer from the object.
Types ¶
This section is empty.