diff --git a/pkg/cluster/charts/apecloud-mysql-cluster.tgz b/pkg/cluster/charts/apecloud-mysql-cluster.tgz index e74f22af2..1ef6e5cf1 100644 Binary files a/pkg/cluster/charts/apecloud-mysql-cluster.tgz and b/pkg/cluster/charts/apecloud-mysql-cluster.tgz differ diff --git a/pkg/cluster/charts/clickhouse-cluster.tgz b/pkg/cluster/charts/clickhouse-cluster.tgz index 3e5e66bfe..e81da3e08 100644 Binary files a/pkg/cluster/charts/clickhouse-cluster.tgz and b/pkg/cluster/charts/clickhouse-cluster.tgz differ diff --git a/pkg/cluster/charts/kafka-cluster.tgz b/pkg/cluster/charts/kafka-cluster.tgz index 67ef61f91..9ea81d215 100644 Binary files a/pkg/cluster/charts/kafka-cluster.tgz and b/pkg/cluster/charts/kafka-cluster.tgz differ diff --git a/pkg/cluster/charts/llm-cluster.tgz b/pkg/cluster/charts/llm-cluster.tgz index f83673094..6175836f9 100644 Binary files a/pkg/cluster/charts/llm-cluster.tgz and b/pkg/cluster/charts/llm-cluster.tgz differ diff --git a/pkg/cluster/charts/milvus-cluster.tgz b/pkg/cluster/charts/milvus-cluster.tgz index b5ba54c7e..ab2276823 100644 Binary files a/pkg/cluster/charts/milvus-cluster.tgz and b/pkg/cluster/charts/milvus-cluster.tgz differ diff --git a/pkg/cluster/charts/mongodb-cluster.tgz b/pkg/cluster/charts/mongodb-cluster.tgz index e51afb44c..bdfb9d577 100644 Binary files a/pkg/cluster/charts/mongodb-cluster.tgz and b/pkg/cluster/charts/mongodb-cluster.tgz differ diff --git a/pkg/cluster/charts/neon-cluster.tgz b/pkg/cluster/charts/neon-cluster.tgz index b72606ca7..f86ac4673 100644 Binary files a/pkg/cluster/charts/neon-cluster.tgz and b/pkg/cluster/charts/neon-cluster.tgz differ diff --git a/pkg/cluster/charts/postgresql-cluster.tgz b/pkg/cluster/charts/postgresql-cluster.tgz index 0a3314174..6962376c0 100644 Binary files a/pkg/cluster/charts/postgresql-cluster.tgz and b/pkg/cluster/charts/postgresql-cluster.tgz differ diff --git a/pkg/cluster/charts/qdrant-cluster.tgz b/pkg/cluster/charts/qdrant-cluster.tgz index e27e3a8b9..9c7f4260a 100644 Binary files a/pkg/cluster/charts/qdrant-cluster.tgz and b/pkg/cluster/charts/qdrant-cluster.tgz differ diff --git a/pkg/cluster/charts/redis-cluster.tgz b/pkg/cluster/charts/redis-cluster.tgz index 2bd6f5785..7ee207428 100644 Binary files a/pkg/cluster/charts/redis-cluster.tgz and b/pkg/cluster/charts/redis-cluster.tgz differ diff --git a/pkg/cluster/charts/weaviate-cluster.tgz b/pkg/cluster/charts/weaviate-cluster.tgz index 7d377c4d5..923bfd677 100644 Binary files a/pkg/cluster/charts/weaviate-cluster.tgz and b/pkg/cluster/charts/weaviate-cluster.tgz differ diff --git a/pkg/cluster/charts/xinference-cluster.tgz b/pkg/cluster/charts/xinference-cluster.tgz index c353d5cef..163f94d5c 100644 Binary files a/pkg/cluster/charts/xinference-cluster.tgz and b/pkg/cluster/charts/xinference-cluster.tgz differ diff --git a/pkg/cmd/kubeblocks/util.go b/pkg/cmd/kubeblocks/util.go index 916431aa5..b2fba7360 100644 --- a/pkg/cmd/kubeblocks/util.go +++ b/pkg/cmd/kubeblocks/util.go @@ -312,13 +312,14 @@ func createOrUpdateCRDS(dynamic dynamic.Interface, kbVersion string) error { } ctx := context.Background() for _, obj := range objs { - if _, err = dynamic.Resource(types.CustomResourceDefinitionGVR()).Get(ctx, obj.GetName(), metav1.GetOptions{}); err != nil { - // update crd + if structObj, err := dynamic.Resource(types.CustomResourceDefinitionGVR()).Get(ctx, obj.GetName(), metav1.GetOptions{}); err != nil { + // create crd if _, err = dynamic.Resource(types.CustomResourceDefinitionGVR()).Create(ctx, &obj, metav1.CreateOptions{}); err != nil { return err } } else { - // create crd + // update crd + obj.SetResourceVersion(structObj.GetResourceVersion()) if _, err = dynamic.Resource(types.CustomResourceDefinitionGVR()).Update(ctx, &obj, metav1.UpdateOptions{}); err != nil { return err }