gardener: github.com/gardener/gardener/pkg/controllerutils Index | Files | Directories

package controllerutils

import "github.com/gardener/gardener/pkg/controllerutils"

Index

Package Files

associations.go finalizers.go miscellaneous.go operations.go pointers.go seedfilter.go worker.go

func AddTasks Uses

func AddTasks(existingAnnotations map[string]string, tasksToAdd ...string)

AddTasks adds a task to the ShootTasks annotation of the passed map.

func BackupBucketFilterFunc Uses

func BackupBucketFilterFunc(seedName string, seedLister gardencorelisters.SeedLister, labelSelector *metav1.LabelSelector) func(obj interface{}) bool

BackupBucketFilterFunc returns a filtering func for the seeds and the given label selector.

func BackupEntryFilterFunc Uses

func BackupEntryFilterFunc(seedName string, seedLister gardencorelisters.SeedLister, labelSelector *metav1.LabelSelector) func(obj interface{}) bool

BackupEntryFilterFunc returns a filtering func for the seeds and the given label selector.

func BoolPtrDerefOr Uses

func BoolPtrDerefOr(b *bool, defaultValue bool) bool

BoolPtrDerefOr dereferences the given bool if it's non-nil. Otherwise, returns the default.

func ControllerInstallationFilterFunc Uses

func ControllerInstallationFilterFunc(seedName string, seedLister gardencorelisters.SeedLister, labelSelector *metav1.LabelSelector) func(obj interface{}) bool

ControllerInstallationFilterFunc returns a filtering func for the seeds and the given label selector.

func CreateWorker Uses

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 Uses

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 Uses

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 DetermineBackupEntryAssociations Uses

func DetermineBackupEntryAssociations(ctx context.Context, c client.Client, seedName string) ([]string, error)

DetermineBackupEntryAssociations determine the BackupEntry resources which are associated to seed with name <seedName>

func DetermineControllerInstallationAssociations Uses

func DetermineControllerInstallationAssociations(ctx context.Context, c client.Client, seedName string) ([]string, error)

DetermineControllerInstallationAssociations determine the ControllerInstallation resources which are associated to seed with name <seedName>

func DetermineSecretBindingAssociations Uses

func DetermineSecretBindingAssociations(quota *gardencorev1beta1.Quota, bindingLister gardencorelisters.SecretBindingLister) ([]string, error)

DetermineSecretBindingAssociations gets a <bindingLister> to determine the SecretBinding resources which are associated to given Quota <obj>.

func DetermineShootAssociations Uses

func DetermineShootAssociations(ctx context.Context, c client.Client, seedName string) ([]string, error)

DetermineShootAssociations determine the Shoot resources which are associated to seed with name <seedName>

func DetermineShootsAssociatedTo Uses

func DetermineShootsAssociatedTo(obj interface{}, shootLister gardencorelisters.ShootLister) ([]string, error)

DetermineShootsAssociatedTo gets a <shootLister> to determine the Shoots resources which are associated to given <obj> (either a CloudProfile a or a Seed object).

func EnsureFinalizer Uses

func EnsureFinalizer(ctx context.Context, c client.Client, obj kutil.Object, finalizer string) error

EnsureFinalizer ensure the <finalizer> is present for the object.

func HasFinalizer Uses

func HasFinalizer(obj metav1.Object, finalizer string) bool

HasFinalizer checks whether the given obj has the given finalizer.

func HasTask Uses

func HasTask(existingAnnotations map[string]string, taskToCheck string) bool

HasTask checks if the passed task is part of the ShootTasks annotation.

func LabelsMatchFor Uses

func LabelsMatchFor(l map[string]string, labelSelector *metav1.LabelSelector) bool

LabelsMatchFor checks whether the given label selector matches for the given set of labels.

func RemoveAllTasks Uses

func RemoveAllTasks(existingAnnotations map[string]string)

RemoveAllTasks removes the ShootTasks annotation from the passed map.

func RemoveFinalizer Uses

func RemoveFinalizer(ctx context.Context, c client.Client, obj kutil.Object, finalizer string) error

RemoveFinalizer removes the <finalizer> from the object.

func RemoveGardenerFinalizer Uses

func RemoveGardenerFinalizer(ctx context.Context, c client.Client, obj kutil.Object) error

RemoveGardenerFinalizer removes the gardener finalizer from the object.

func RemoveGardenerOperationAnnotation Uses

func RemoveGardenerOperationAnnotation(ctx context.Context, backoff wait.Backoff, cli client.Client, obj kutil.Object) error

RemoveGardenerOperationAnnotation removes a gardener operation annotation and retries the operation with the given <backoff>.

func SeedFilterFunc Uses

func SeedFilterFunc(seedName string, labelSelector *metav1.LabelSelector) func(obj interface{}) bool

SeedFilterFunc returns a filtering func for the seeds and the given label selector.

func SeedLabelsMatch Uses

func SeedLabelsMatch(seedLister gardencorelisters.SeedLister, seedName string, labelSelector *metav1.LabelSelector) bool

SeedLabelsMatch fetches the given seed via a lister by its name and then checks whether the given label selector matches the seed labels.

func ShootFilterFunc Uses

func ShootFilterFunc(seedName string, seedLister gardencorelisters.SeedLister, labelSelector *metav1.LabelSelector) func(obj interface{}) bool

ShootFilterFunc returns a filtering func for the seeds and the given label selector.

Directories

PathSynopsis
metrics

Package controllerutils imports 25 packages (graph) and is imported by 19 packages. Updated 2020-04-01. Refresh now. Tools for package owners.