File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
synchromanager/clustersynchro/queue Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -26,9 +26,9 @@ type ResourceDiscoveryAPI struct {
26
26
Versions sets.Set [schema.GroupVersion ]
27
27
}
28
28
29
- // DiscoveryManager 管理集群的 discovery api,并处理 /api 和 /apis 的请求
29
+ // DiscoveryManager manage the cluster's discovery api and handle requests for /api and /apis
30
30
type DiscoveryManager struct {
31
- // groupSource 用来保证所有集群的 API Group 保持一致
31
+ // groupSource used to ensure that the API Groups of all clusters are consistent
32
32
groupSource APIGroupSource
33
33
34
34
serializer runtime.NegotiatedSerializer
@@ -38,8 +38,8 @@ type DiscoveryManager struct {
38
38
groupHandler * clusterGroupDiscoveryHandler
39
39
versionHandler * clusterVersionDiscoveryHandler
40
40
41
- // groups 保存了所有集群支持的 API Group
42
- // clusterGroups 保存了每个集群的 API Group
41
+ // apigroups is an apiGroup list supported by all clusters
42
+ // clusterGroups API Groups supported by each cluster
43
43
apigroups atomic.Value // type: []metav1.APIGroup
44
44
clusterAPIGroups atomic.Value // type: map[string][]metav1.APIGroup
45
45
Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ func pressureEvents(older *Event, newer *Event) *Event {
30
30
switch newer .Action {
31
31
case Updated :
32
32
if older .Action == Deleted {
33
- // TODO: 可以比对 resource version
34
- // 但是从 informer 中获取的数据应该是可以保证顺序的,所以可以不添加比对
33
+ // TODO: can compare resource version
34
+ // but the data obtained from the informer should be in order, so comparison is not needed.
35
35
return older
36
36
}
37
37
You can’t perform that action at this time.
0 commit comments