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

chore: revert addon cmd #108

Merged
merged 4 commits into from
Dec 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ clean-kbcli: ## Clean bin/kbcli*.
rm -f bin/kbcli*

.PHONY: kbcli-doc
kbcli-doc: build-kbcli-embed-chart ## generate CLI command reference manual.
kbcli-doc: ## generate CLI command reference manual.

$(GO) run -tags $(BUILD_TAGS) ./hack/docgen/cli/main.go ./docs/user_docs/cli

Expand Down
15 changes: 15 additions & 0 deletions docs/user_docs/cli/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,21 @@ description: KubeBlocks CLI overview
sidebar_position: 1
---

## [addon](kbcli_addon.md)

Addon command.

* [kbcli addon describe](kbcli_addon_describe.md) - Describe an addon specification.
* [kbcli addon disable](kbcli_addon_disable.md) - Disable an addon.
* [kbcli addon enable](kbcli_addon_enable.md) - Enable an addon.
* [kbcli addon index](kbcli_addon_index.md) - Manage custom addon indexes
* [kbcli addon install](kbcli_addon_install.md) - install KubeBlocks addon
* [kbcli addon list](kbcli_addon_list.md) - List addons.
* [kbcli addon search](kbcli_addon_search.md) - search the addon from index
* [kbcli addon uninstall](kbcli_addon_uninstall.md) - uninstall an existed addon
* [kbcli addon upgrade](kbcli_addon_upgrade.md) - Upgrade an existed addon to latest version or a specified version


## [alert](kbcli_alert.md)

Manage alert receiver, include add, list and delete receiver.
Expand Down
1 change: 1 addition & 0 deletions docs/user_docs/cli/kbcli.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ kbcli [flags]

### SEE ALSO

* [kbcli addon](kbcli_addon.md) - Addon command.
* [kbcli alert](kbcli_alert.md) - Manage alert receiver, include add, list and delete receiver.
* [kbcli backuprepo](kbcli_backuprepo.md) - BackupRepo command.
* [kbcli bench](kbcli_bench.md) - Run a benchmark.
Expand Down
2 changes: 2 additions & 0 deletions pkg/cmd/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import (

viper "github.com/apecloud/kubeblocks/pkg/viperx"

"github.com/apecloud/kbcli/pkg/cmd/addon"
"github.com/apecloud/kbcli/pkg/cmd/alert"
"github.com/apecloud/kbcli/pkg/cmd/auth"
"github.com/apecloud/kbcli/pkg/cmd/backuprepo"
Expand Down Expand Up @@ -204,6 +205,7 @@ A Command Line Interface for KubeBlocks`,
clusterdefinition.NewClusterDefinitionCmd(f, ioStreams),
class.NewClassCommand(f, ioStreams),
alert.NewAlertCmd(f, ioStreams),
addon.NewAddonCmd(f, ioStreams),
migration.NewMigrationCmd(f, ioStreams),
plugin.NewPluginCmd(ioStreams),
fault.NewFaultCmd(f, ioStreams),
Expand Down