Skip to content

[Improvement] kbcli cluster backup should check if the specified backup method exists #326

@zjx20

Description

@zjx20

Is your improvement request related to a problem? Please describe.

The backup command succeeds even if the specified backup method does not exist. For example:

kbcli cluster backup mycluster --method=bad_method

But the backup ops reports error message:

  Warning  DoActionFailed            1s (x12 over 11s)  ops-request-controller  Failed to process the operation of OpsRequest: backup method bad_method is not supported, please check cluster's backup policy

Describe the solution you'd like

kbcli should check the specified backup method before invoking a backup ops.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions