utils

package
v0.0.0-...-be4dc66 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2019 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTasks

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

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

func ComputeOperationType

func ComputeOperationType(meta metav1.ObjectMeta, lastOperation *gardenv1beta1.LastOperation) gardenv1beta1.ShootLastOperationType

ComputeOperationType checksthe <lastOperation> and determines whether is it is Create operation or reconcile operation

func CreateWorker

func CreateWorker(ctx context.Context, queue workqueue.RateLimitingInterface, resourceType string, reconciler func(key string) error, 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 DetermineBackupInfrastructureAssociations

func DetermineBackupInfrastructureAssociations(seed *gardenv1beta1.Seed, backupInfrastructureLister gardenlisters.BackupInfrastructureLister) ([]string, error)

DetermineBackupInfrastructureAssociations gets a <backupInfrastructureLister> to determine the BackupInfrastructures resources which are associated to given <seed>

func DetermineSecretBindingAssociations

func DetermineSecretBindingAssociations(quota *gardenv1beta1.Quota, bindingLister gardenlisters.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 gardenlisters.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 HasTask

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

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

func RemoveAllTasks

func RemoveAllTasks(existingAnnotations map[string]string)

RemoveAllTasks removes the ShootTasks annotation from the passed map.

Types

This section is empty.

Jump to

Keyboard shortcuts

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