2021年7月8日

摘要: NamespaceIndexName: NamespaceIndexFunc, NodeNameIndexName: NodeNameIndexFunc, cat<<EOF >informer.go package main import ( "fmt" v1 "k8s.io/api/core/v1 阅读全文
posted @ 2021-07-08 16:44 tycoon3 阅读(239) 评论(0) 推荐(0)
摘要: root@ubuntu:~/controller101# dlv attach 39568 Type 'help' for list of commands. (dlv) b controller.enqueue Breakpoint 1 (enabled) set at 0xad7f10 for 阅读全文
posted @ 2021-07-08 15:50 tycoon3 阅读(207) 评论(0) 推荐(0)
摘要: go build -ldflags 参数及 gdb 调试 有时发布时我们想隐藏所有代码实现相关的信息,使用 go build -ldflags 参数可以实现相关要求。 示例代码 本文使用版本为go 1.6。 package main import "log" type MyCat struct { 阅读全文
posted @ 2021-07-08 15:42 tycoon3 阅读(885) 评论(0) 推荐(0)
摘要: root@ubuntu:~/controller101# bash hack/k8s/update-generated.sh Generating deepcopy funcs F0708 14:32:21.192292 11530 main.go:82] Error: Failed making 阅读全文
posted @ 2021-07-08 14:55 tycoon3 阅读(352) 评论(0) 推荐(0)
摘要: it clone https://github.com/kairen/controller101.git root@ubuntu:~/controller101# make go build -ldflags="-s -w -X github.com/cloud-native-taiwan/cont 阅读全文
posted @ 2021-07-08 11:52 tycoon3 阅读(404) 评论(0) 推荐(0)
摘要: pkg/scheduler/scheduler.go:67 相应的资源 Informer 开始 Iist-Watch 监听事件变化 // Run starts the schedulerCache func (sc *SchedulerCache) Run(stopCh <-chan struct{ 阅读全文
posted @ 2021-07-08 11:27 tycoon3 阅读(100) 评论(0) 推荐(0)
摘要: cat<<EOF >informer.go package main import ( "flag" "fmt" "time" "k8s.io/client-go/informers" coreinformers "k8s.io/client-go/informers/core/v1" "k8s.i 阅读全文
posted @ 2021-07-08 10:53 tycoon3 阅读(72) 评论(0) 推荐(0)

导航