operator-sdk流程分析
1.初始化logger
// use zap logging cli options
//set the controller-runtime logger
opts := zap.Options{}
//add the zap flagset to the operator’s command line flags
opts.BindFlags(flag.CommandLine)
//定义 监控暴露的端口
flag.StringVar(&metricsAddr, "metrics-.
原创
2022-04-03 15:29:45 ·
2081 阅读 ·
0 评论