Skip to content

set node's endpoint & tls configs#83

Merged
jschwinger233 merged 1 commit intoprojecteru2:masterfrom
DuodenumL:feature/endpoint
Dec 31, 2021
Merged

set node's endpoint & tls configs#83
jschwinger233 merged 1 commit intoprojecteru2:masterfrom
DuodenumL:feature/endpoint

Conversation

@DuodenumL
Copy link
Copy Markdown
Contributor

node set现在支持设置endpoint / ca / cert / key了。

之前有个node update的命令可以设置endpoint,功能重复,我就给删了...不过为了兼容,把node set设置了个alias,现在node update完全等价于node set。

@CMGS
Copy link
Copy Markdown
Collaborator

CMGS commented Dec 29, 2021

你这 go.mod不太行

@DuodenumL
Copy link
Copy Markdown
Contributor Author

你这 go.mod不太行

所以是WIP...要core那边合了,这边才能改成正确的go mod

Comment thread cmd/node/add.go Outdated

nodename := c.String("nodename")
if nodename == "" {
n, err := os.Hostname()
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这些默认值都可以放到 cli 声明命令行参数那里吧, 包括上面的 83(旧)/69(新)行

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nodename这个可以,但是L69那个不太行,假设/etc/docker/tls/ca.crt不存在,L75(新)应该会报错

@jschwinger233
Copy link
Copy Markdown
Member

更新一下 go.mod, 准备合并

@DuodenumL DuodenumL changed the title [WIP] set node's endpoint & tls configs set node's endpoint & tls configs Dec 31, 2021
@DuodenumL
Copy link
Copy Markdown
Contributor Author

更新一下 go.mod, 准备合并

好了

@jschwinger233 jschwinger233 merged commit c237e51 into projecteru2:master Dec 31, 2021
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

Successfully merging this pull request may close these issues.

3 participants