Skip to content

Commit 65dc680

Browse files
authored
Merge pull request #1165 from yue9944882/doc/informer-factory
Doc: Fixes the gap between doc & impl for informer factory
2 parents 2bbdb34 + 1d12b11 commit 65dc680

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

util/src/main/java/io/kubernetes/client/informer/SharedInformerFactory.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ SharedIndexInformer<ApiType> sharedIndexInformerFor(
9595
}
9696

9797
/**
98-
* Constructs and returns a shared index informer w/ resync period specified. And the informer
99-
* cache will be overwritten.
98+
* Constructs and returns a shared index informer w/ resync period specified. But the informer
99+
* cache will not be overwritten i.e. only the first registered informer will be kept.
100100
*
101101
* @param <ApiType> the type parameter
102102
* @param <ApiListType> the type parameter
@@ -118,8 +118,9 @@ SharedIndexInformer<ApiType> sharedIndexInformerFor(
118118
}
119119

120120
/**
121-
* Constructs and returns a shared index informer by specifying lister-watcher. And the informer
122-
* cache will be overwritten on multiple call w/ the the same apiTypeClass.
121+
* Constructs and returns a shared index informer by specifying lister-watcher. But the informer
122+
* cache will not be overwritten on multiple call w/ the the same apiTypeClass i.e. only the first
123+
* registered informer will be kept.
123124
*
124125
* @param <ApiType> the type parameter
125126
* @param <ApiListType> the type parameter

0 commit comments

Comments
 (0)