Skip to content

[Improvement] auto-complete for 'kbcli cluster delete-backup ' #73

@shanshanying

Description

@shanshanying
kbcli version 
KubeBlocks: 0.8.0-alpha.9
kbcli: 0.8.0-alpha.9

To reproduce:

  1. install kbcli and kubeblocks

install kbcli

curl -fsSL https://kubeblocks.io/installer/install_cli.sh | bash

and install kubeblocks

kbcli kubeblocks install

if there is no accessible k8s, just use our playground

 kbcli playground init

ref to: https://kubeblocks.io/docs/preview/user_docs/try-out-on-playground/try-kubeblocks-on-your-laptop
2. create a mysql cluster

 kbcli cluster create mycluster --cluster-definition apecloud-mysql --cluster
-version ac-mysql-8.0.30
  1. check cluster status, wait till it is running
 kbcli cluster list mycluster
image
  1. create a backup
kbcli cluster backup mycluster --method xtrabackup

Because there is no BackupRepo configured, this backup task should fail as expected.
image

  1. delete the backup by
image

If you type tab at this moment, there is no auto-completion for backup names.

For comprision, you can try

kbcli cluster list my<tab>

and cluster name mycluster will be completed.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions