diff options
| author | Christoph Blecker <admin@toph.ca> | 2017-08-15 10:33:07 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-08-15 10:33:07 -0700 |
| commit | 8cafef897a22026d42f5e5bb3f104febe7e29830 (patch) | |
| tree | eda68b0c2083c0e3ca8b40f35d3ff71c5fc6a263 | |
| parent | 27f3e05d73105c44312bfcefd7bff6d57ba76675 (diff) | |
| parent | 4572117a42b83d2a24bd2fd662a03a671486d093 (diff) | |
Merge pull request #863 from x1957/patch-2
format the code in controller.md
| -rw-r--r-- | contributors/devel/controllers.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contributors/devel/controllers.md b/contributors/devel/controllers.md index 86c6726f..b8addd94 100644 --- a/contributors/devel/controllers.md +++ b/contributors/devel/controllers.md @@ -73,7 +73,7 @@ When you're writing controllers, there are few guidelines that will help make su Overall, your controller should look something like this: ```go -type Controller struct{ +type Controller struct { // podLister is secondary cache of pods which is used for object lookups podLister cache.StoreToPodLister @@ -82,7 +82,7 @@ type Controller struct{ queue workqueue.RateLimitingInterface } -func (c *Controller) Run(threadiness int, stopCh chan struct{}){ +func (c *Controller) Run(threadiness int, stopCh chan struct{}) { // don't let panics crash the process defer utilruntime.HandleCrash() // make sure the work queue is shutdown which will trigger workers to end |
