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
2.14k stars 176 forks source link

[BUG]1.0 helm upgrade -i kb-addon-opensearch failed with errror: no matches for kind "ClusterVersion" #8449

Open tianyue86 opened 3 days ago

tianyue86 commented 3 days ago

Describe the env

Kubernetes: v1.30.4-eks-a737599
KubeBlocks: 1.0.0-beta.1
kbcli: 1.0.0-alpha.1

To Reproduce Steps to reproduce the behavior:

  1. Search repo success
    tianyue@kubeblocks-addons % helm search repo kubeblocks-addons/opensearch --versions --devel | grep 1.0.0
    kubeblocks-addons/opensearch            1.0.0-alpha.0   2.7.0       Open source distributed and RESTful search engine.
    kubeblocks-addons/opensearch-cluster    1.0.0-alpha.0   2.7.0       A Helm chart for OpenSearch Cluster 
  2. install failed with error
    tianyue@kubeblocks-addons % helm upgrade -i kb-addon-opensearch kubeblocks-addons/opensearch --version 1.0.0-alpha.0 -n kb-system
    Error: UPGRADE FAILED: unable to build kubernetes objects from current release manifest: resource mapping not found for name: "opensearch-2.7.0" namespace: "" from "": no matches for kind "ClusterVersion" in version "[apps.kubeblocks.io/v1alpha1](http://apps.kubeblocks.io/v1alpha1)"
    ensure CRDs are installed first

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

tianyue86 commented 2 days ago

tianyue@apeclouds-MacBook-Pro kubeblocks-addons % helm upgrade -i kb-addon-weaviate kubeblocks-addons/weaviate --version 1.0.0-alpha.0 -n kb-system Error: UPGRADE FAILED: unable to build kubernetes objects from current release manifest: [resource mapping not found for name: "weaviate-backup-policy-template" namespace: "" from "": no matches for kind "BackupPolicyTemplate" in version "apps.kubeblocks.io/v1alpha1" ensure CRDs are installed first, resource mapping not found for name: "weaviate-1.18.0" namespace: "" from "": no matches for kind "ClusterVersion" in version "apps.kubeblocks.io/v1alpha1" ensure CRDs are installed first] ===> weaviate has the same problem, please fix them together. Thanks!