chore(register): update proto file.

Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi.Wu
2022-10-07 20:59:02 +08:00
committed by Jason Song
parent 3a1503138b
commit c161a48a0a
5 changed files with 21 additions and 8 deletions

View File

@ -50,11 +50,11 @@ func (p *Poller) Register(ctx context.Context, cfg config.Runner) error {
// register new runner.
resp, err := p.Client.Register(ctx, connect.NewRequest(&runnerv1.RegisterRequest{
Os: p.Filter.OS,
Arch: p.Filter.Arch,
Labels: p.Filter.Labels,
Name: cfg.Name,
Token: cfg.Token,
Name: cfg.Name,
Token: cfg.Token,
Url: cfg.URL,
AgentLabels: []string{p.Filter.OS, p.Filter.Arch},
CustomLabels: p.Filter.Labels,
}))
if err != nil {
log.WithError(err).Error("poller: cannot register new runner")