Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quick Start Error #30

Open
yigang01 opened this issue Oct 8, 2023 · 2 comments
Open

Quick Start Error #30

yigang01 opened this issue Oct 8, 2023 · 2 comments

Comments

@yigang01
Copy link

yigang01 commented Oct 8, 2023

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

$ <software> version
# paste output here
@yigang01
Copy link
Author

yigang01 commented Oct 8, 2023

@sky-big

@divanodestiny
Copy link
Collaborator

divanodestiny commented Oct 31, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants