上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 164 下一页

2021年7月14日

摘要: root@ubuntu:~# kubectl apply -f job.yaml job.batch.volcano.sh/test-job created 先触发AddPodGroupV1beta1后AddPod AddPod 其中 AddPod 会干以下几件事: 对 pod 生成一个对应的 ta 阅读全文
posted @ 2021-07-14 15:42 tycoon3 阅读(300) 评论(0) 推荐(0)

2021年7月13日

摘要: package main import ( "fmt" "container/list" ) func main() { x := make(map[string]*list.List) x["key"] = list.New() x["key"].PushBack("value") fmt.Pri 阅读全文
posted @ 2021-07-13 16:13 tycoon3 阅读(57) 评论(0) 推荐(0)

2021年7月12日

摘要: Enqueue Queues QueueMap jobsMap //扫描一遍job,初始化上面三个数据结构 For job in ssn.Jobs //过滤1 found := ssn.Queues[job.Queue] existed := queueMap[queue.UID] //过滤2 if 阅读全文
posted @ 2021-07-12 18:15 tycoon3 阅读(97) 评论(0) 推荐(0)
摘要: [root@bogon data2]# source ./kata/go_source [root@bogon delve]# ps -elf | grep scheduler 4 S nova 2302 1 0 80 0 - 3748 SyS_ep 2020 ? 09:22:51 /usr/bin 阅读全文
posted @ 2021-07-12 15:08 tycoon3 阅读(278) 评论(0) 推荐(0)

2021年7月9日

摘要: root@ubuntu:~/go_learn/informer# cat informer.go package main import ( "os" "fmt" "github.com/spongeprojects/magicconch" corev1 "k8s.io/api/core/v1" " 阅读全文
posted @ 2021-07-09 12:08 tycoon3 阅读(284) 评论(0) 推荐(0)
摘要: // NewDeltaFIFOWithOptions returns a Queue which can be used to process changes to // items. See also the comment on DeltaFIFO. func NewDeltaFIFOWithO 阅读全文
posted @ 2021-07-09 11:58 tycoon3 阅读(92) 评论(0) 推荐(0)

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 阅读(244) 评论(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 阅读(213) 评论(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 阅读(905) 评论(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 阅读(354) 评论(0) 推荐(0)
上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 164 下一页

导航