apecloud / kubeblocks

KubeBlocks is an open-source control plane software that runs and manages databases, message queues and other stateful applications on K8s.
https://kubeblocks.io
GNU Affero General Public License v3.0
1.76k stars 155 forks source link

[BUG] no matches for kind "BackupTool" in version "dataprotection.kubeblocks.io/v1alpha1" #7619

Open Galaxy-Explorer opened 1 week ago

Galaxy-Explorer commented 1 week ago

kbcli version:

Kubernetes: v1.28.9
KubeBlocks: 0.8.3
kbcli: 0.8.3

install is success, but has not crd backup tools

# kubectl get crd -l app.kubernetes.io/name=kubeblocks
NAME                                              CREATED AT
actionsets.dataprotection.kubeblocks.io           2024-06-19T04:55:45Z
addons.extensions.kubeblocks.io                   2024-06-19T04:55:47Z
backuppolicies.dataprotection.kubeblocks.io       2024-06-19T04:55:45Z
backuppolicytemplates.apps.kubeblocks.io          2024-06-19T04:55:41Z
backuprepos.dataprotection.kubeblocks.io          2024-06-19T04:55:46Z
backups.dataprotection.kubeblocks.io              2024-06-19T04:55:46Z
backupschedules.dataprotection.kubeblocks.io      2024-06-19T04:55:46Z
clusterdefinitions.apps.kubeblocks.io             2024-06-19T04:55:41Z
clusters.apps.kubeblocks.io                       2024-06-19T04:55:41Z
clusterversions.apps.kubeblocks.io                2024-06-19T04:55:41Z
componentclassdefinitions.apps.kubeblocks.io      2024-06-19T04:55:41Z
componentdefinitions.apps.kubeblocks.io           2024-06-19T04:55:42Z
componentresourceconstraints.apps.kubeblocks.io   2024-06-19T04:55:42Z
components.apps.kubeblocks.io                     2024-06-19T04:55:42Z
configconstraints.apps.kubeblocks.io              2024-06-19T04:55:43Z
configurations.apps.kubeblocks.io                 2024-06-19T04:55:43Z
opsdefinitions.apps.kubeblocks.io                 2024-06-19T04:55:44Z
opsrequests.apps.kubeblocks.io                    2024-06-19T04:55:44Z
replicatedstatemachines.workloads.kubeblocks.io   2024-06-19T04:55:48Z
restores.dataprotection.kubeblocks.io             2024-06-19T04:55:47Z
servicedescriptors.apps.kubeblocks.io             2024-06-19T04:55:44Z
storageproviders.storage.kubeblocks.io            2024-06-19T04:55:48Z

# helm install oracle-mysql learn-kubeblocks-addon/tutorial-2-backup-restore/oracle-mysql
Error: INSTALLATION FAILED: unable to build kubernetes objects from release manifest: resource mapping not found for name: "oracle-mysql-xtrabackup" namespace: "" from "": no matches for kind "BackupTool" in version "dataprotection.kubeblocks.io/v1alpha1"
ensure CRDs are installed first

``

weicao commented 1 week ago

Your installation is correct. The tutorial documentation is outdated. The BackupTool CRD was refactored to ActionSet https://github.com/apecloud/kubeblocks/pull/4917, which was merged in KubeBlocks v0.7.

@shanshanying , please update the tutorial to reflect these changes.

weicao commented 1 week ago

@ahjing99 We should consider including the code from the tutorial in our regression test suite.

ahjing99 commented 1 week ago

@ahjing99 We should consider including the code from the tutorial in our regression test suite.

Got it, we will add this to our regression bucket

shanshanying commented 6 days ago

Your installation is correct. The tutorial documentation is outdated. The BackupTool CRD was refactored to ActionSet #4917, which was merged in KubeBlocks v0.7.

@shanshanying , please update the tutorial to reflect these changes.

Got it.