kubewharf / kubebrain

A High Performance Metadata System for Kubernetes
Apache License 2.0
771 stars 77 forks source link

Quick Start Error #30

Open yigang01 opened 1 year ago

yigang01 commented 1 year ago

What happened?

make badger ./bin/kube-brain --key-prefix "/" 这个启动命令示例是不是有点问题?直接这样运行会报错,没有看到有详细的文档介绍,看了一下代码,这个启动命令直接执行程序是起不来的,是否考虑换一个能直接执行的能够演示的启动命令

func (o *KubeBrainOption) Validate() error { // 在这里check的时候如果key-prefix后缀是 "/" 程序就一直起不来,示例启动命令刚好是这个 if strings.HasSuffix(o.Prefix, "/") { return fmt.Errorf("prefix %s is invalid, make sure it has no / suffix", o.Prefix) } return o.storageConfig.validate() }

What did you expect to happen?

no

How can we reproduce it (as minimally and precisely as possible)?

no

Software version

```console $ version # paste output here ```
yigang01 commented 1 year ago

@sky-big

divanodestiny commented 1 year ago

@yigang01 抱歉回复地较晚,可以考虑增加一个前缀,建议如果使用的话和apiserver配置的etcd-prefix保持一致