Skip to content

cli: add cluster worker subcommands#1276

Merged
bigbes merged 1 commit intomasterfrom
oleg-jukovec/tntp-7059-cluster-worker-prepare
Apr 29, 2026
Merged

cli: add cluster worker subcommands#1276
bigbes merged 1 commit intomasterfrom
oleg-jukovec/tntp-7059-cluster-worker-prepare

Conversation

@oleg-jukovec
Copy link
Copy Markdown
Contributor

Add tt cluster worker with publish, show, and delete subcommands for managing TDB worker configurations in etcd or tarantool config storage. The implementation includes context types, URL path parsing, and credentials resolution with proper priority handling.

Extend MakeURLHelp to support custom URL path formats via url_path and path_ parameters, enabling help messages for commands with non-standard URL structures like /prefix/host-name/worker-name.

The actual storage operations are stubbed out and will be implemented in follow-up commits. Includes unit and integration tests.

Closes TNTP-7059

What has been done? Why? What problem is being solved?

I didn't forget about (remove if it is not applicable):

  • Well-written commit messages (see [documentation][how-to-write-commit] how to write a commit message)
  • Tests (see [documentation][go-testing] for a testing package)

@oleg-jukovec oleg-jukovec force-pushed the oleg-jukovec/tntp-7059-cluster-worker-prepare branch from f9ebc03 to 7a6bee5 Compare April 15, 2026 22:16
@oleg-jukovec oleg-jukovec requested review from bigbes and sssciel April 16, 2026 12:58
@oleg-jukovec oleg-jukovec added the full-ci Enables full ci tests label Apr 16, 2026
Comment thread cli/cluster/cmd/worker.go
Comment thread cli/cmd/cluster.go Outdated
Comment thread cli/cmd/cluster.go Outdated
Comment thread cli/cmd/cluster.go Outdated
Comment thread cli/cluster/cmd/worker.go Outdated
Copy link
Copy Markdown
Collaborator

@bigbes bigbes left a comment

Choose a reason for hiding this comment

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

pls replace fmt.Errorf(string) to errors.New(string)

Add `tt cluster worker` with publish, show, and delete subcommands
for managing TDB worker configurations in etcd or tarantool config
storage. The implementation includes context types, URL path parsing,
and credentials resolution with proper priority handling.

Extend MakeURLHelp to support custom URL path formats via url_path
and path_<name> parameters, enabling help messages for commands
with non-standard URL structures like /prefix/host-name/worker-name.

The actual storage operations are stubbed out and will be implemented
in follow-up commits. Includes unit and integration tests.

Closes TNTP-7059
@oleg-jukovec oleg-jukovec force-pushed the oleg-jukovec/tntp-7059-cluster-worker-prepare branch from 7a6bee5 to 804c2e8 Compare April 27, 2026 15:22
@oleg-jukovec oleg-jukovec requested review from bigbes and sssciel April 27, 2026 15:29
@bigbes bigbes merged commit 1dad7ed into master Apr 29, 2026
29 checks passed
@bigbes bigbes deleted the oleg-jukovec/tntp-7059-cluster-worker-prepare branch April 29, 2026 04:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

full-ci Enables full ci tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants