controller

package
v0.0.0-...-133fb1b Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfResourceVersionChanged

func CheckIfResourceVersionChanged(oldShoot *gardenv1beta1.Shoot, newShoot *gardenv1beta1.Shoot) bool

CheckIfResourceVersionChanged returns true if the .metadata.resourceVersion fields of oldShoot and newShoot differ, and false otherwise.

func CheckIfSpecChanged

func CheckIfSpecChanged(oldShoot *gardenv1beta1.Shoot, newShoot *gardenv1beta1.Shoot) bool

CheckIfSpecChanged returns true if the .spec fields of oldShoot and newShoot differ, and false otherwise.

func CheckIfStatusChanged

func CheckIfStatusChanged(oldShoot *gardenv1beta1.Shoot, newShoot *gardenv1beta1.Shoot) bool

CheckIfStatusChanged returns true if the .status fields of oldShoot and newShoot differ, and false otherwise.

func CreateWorker

func CreateWorker(queue workqueue.RateLimitingInterface, resourceType string, reconciler func(key string) error, stopCh <-chan struct{}, 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.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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