Skip to content

Commit 05b6c58

Browse files
daixiang0k8s-publishing-bot
authored andcommitted
delete all duplicate empty blanks
Signed-off-by: Xiang Dai <[email protected]> Kubernetes-commit: 36065c6dd717c14e0a90131041e20345a7e5e324
1 parent 1601268 commit 05b6c58

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

.github/PULL_REQUEST_TEMPLATE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Sorry, we do not accept changes directly against this repository. Please see
1+
Sorry, we do not accept changes directly against this repository. Please see
22
CONTRIBUTING.md for information on where and how to contribute instead.

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
Do not open pull requests directly against this repository, they will be ignored. Instead, please open pull requests against [kubernetes/kubernetes](https://git.k8s.io/kubernetes/). Please follow the same [contributing guide](https://git.k8s.io/kubernetes/CONTRIBUTING.md) you would follow for any other pull request made to kubernetes/kubernetes.
44

5-
This repository is published from [kubernetes/kubernetes/staging/src/k8s.io/sample-controller](https://git.k8s.io/kubernetes/staging/src/k8s.io/sample-controller) by the [kubernetes publishing-bot](https://git.k8s.io/publishing-bot).
5+
This repository is published from [kubernetes/kubernetes/staging/src/k8s.io/sample-controller](https://git.k8s.io/kubernetes/staging/src/k8s.io/sample-controller) by the [kubernetes publishing-bot](https://git.k8s.io/publishing-bot).
66

77
Please see [Staging Directory and Publishing](https://git.k8s.io/community/contributors/devel/sig-architecture/staging.md) for more information

docs/controller-client-go.md

+16-16
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# client-go under the hood
22

3-
The [client-go](https://github.com/kubernetes/client-go/) library contains various mechanisms that you can use when
4-
developing your custom controllers. These mechanisms are defined in the
3+
The [client-go](https://github.com/kubernetes/client-go/) library contains various mechanisms that you can use when
4+
developing your custom controllers. These mechanisms are defined in the
55
[tools/cache folder](https://github.com/kubernetes/client-go/tree/master/tools/cache) of the library.
66

7-
Here is a pictorial representation showing how the various components in
8-
the client-go library work and their interaction points with the custom
7+
Here is a pictorial representation showing how the various components in
8+
the client-go library work and their interaction points with the custom
99
controller code that you will write.
1010

1111
<p align="center">
@@ -19,7 +19,7 @@ watches the Kubernetes API for the specified resource type (kind).
1919
The function in which this is done is *ListAndWatch*.
2020
The watch could be for an in-built resource or it could be for a custom resource.
2121
When the reflector receives notification about existence of new
22-
resource instance through the watch API, it gets the newly created object
22+
resource instance through the watch API, it gets the newly created object
2323
using the corresponding listing API and puts it in the Delta Fifo queue
2424
inside the *watchHandler* function.
2525

@@ -38,27 +38,27 @@ that generates an object’s key as `<namespace>/<name>` combination for that ob
3838

3939
## Custom Controller components
4040

41-
* Informer reference: This is the reference to the Informer instance that knows
42-
how to work with your custom resource objects. Your custom controller code needs
41+
* Informer reference: This is the reference to the Informer instance that knows
42+
how to work with your custom resource objects. Your custom controller code needs
4343
to create the appropriate Informer.
4444

45-
* Indexer reference: This is the reference to the Indexer instance that knows
46-
how to work with your custom resource objects. Your custom controller code needs
47-
to create this. You will be using this reference for retrieving objects for
45+
* Indexer reference: This is the reference to the Indexer instance that knows
46+
how to work with your custom resource objects. Your custom controller code needs
47+
to create this. You will be using this reference for retrieving objects for
4848
later processing.
4949

5050
The base controller in client-go provides the *NewIndexerInformer* function to create Informer and Indexer.
5151
In your code you can either [directly invoke this function](https://github.com/kubernetes/client-go/blob/master/examples/workqueue/main.go#L174) or [use factory methods for creating an informer.](https://github.com/kubernetes/sample-controller/blob/master/main.go#L61)
5252

53-
* Resource Event Handlers: These are the callback functions which will be called by
54-
the Informer when it wants to deliver an object to your controller. The typical
53+
* Resource Event Handlers: These are the callback functions which will be called by
54+
the Informer when it wants to deliver an object to your controller. The typical
5555
pattern to write these functions is to obtain the dispatched object’s key
5656
and enqueue that key in a work queue for further processing.
5757

58-
* Work queue: This is the queue that you create in your controller code to decouple
59-
delivery of an object from its processing. Resource event handler functions are written
58+
* Work queue: This is the queue that you create in your controller code to decouple
59+
delivery of an object from its processing. Resource event handler functions are written
6060
to extract the delivered object’s key and add that to the work queue.
6161

62-
* Process Item: This is the function that you create in your code which processes items
63-
from the work queue. There can be one or more other functions that do the actual processing.
62+
* Process Item: This is the function that you create in your code which processes items
63+
from the work queue. There can be one or more other functions that do the actual processing.
6464
These functions will typically use the [Indexer reference](https://github.com/kubernetes/client-go/blob/master/examples/workqueue/main.go#L73), or a Listing wrapper to retrieve the object corresponding to the key.

0 commit comments

Comments
 (0)