Skip to content

Commit

Permalink
打卡第五天:
Browse files Browse the repository at this point in the history
分析informer处理数据流程
  • Loading branch information
wdtytq committed Jul 24, 2021
1 parent 629b3c6 commit 337eb84
Show file tree
Hide file tree
Showing 8 changed files with 742 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/kube-controller-manager/app/controllermanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ func CreateControllerContext(s *config.CompletedConfig, rootClientBuilder, clien

/*
创建一个新的元数据客户端,该客户端可以以PartialObjectMetadata对象的形式,
检索任何Kubernetes对象(核心、聚合或基于自定义资源)的对象元数据详细信息,或者返回错误
检索任何Kubernetes对象(核心、聚合或CRD类型资源)的对象元数据详细信息,或者返回错误
*/
metadataClient := metadata.NewForConfigOrDie(rootClientBuilder.ConfigOrDie("metadata-informers"))
metadataInformers := metadatainformer.NewSharedInformerFactory(metadataClient, ResyncPeriod(s)())
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added notes/controller-manager/asset/cm.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added notes/controller-manager/asset/informer-tmpl.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
741 changes: 741 additions & 0 deletions notes/controller-manager/controller-manager.md

Large diffs are not rendered by default.

0 comments on commit 337eb84

Please sign in to comment.