[BUG] ComponentDefinition status not updated to Available after installing Orchestrator addon
Describe the bug I encountered an issue while installing the orchestrator addon using Helm. Although the Helm installation completes successfully and the component instances are created, the ComponentDefinition status does not transition to Available. Controller logs reveal an error related to spec.configs[0].templateRef.
To Reproduce Steps to reproduce the behavior:
- Add the kubeblocks Helm repository:
helm repo add kubeblocks https://charts.kubeblocks.io
helm repo update
- Search for the orchestrator chart:
helm search repo kubeblocks/orchestrator --devel --versions
Output:
NAME CHART VERSION APP VERSION DESCRIPTION
kubeblocks/orchestrator 1.0.0-alpha.0 3.2.6 Orchestrator is a MySQL high availability and r...
- Install the orchestrator addon:
helm install kb-addon-orc kubeblocks/orchestrator --namespace kb-system --create-namespace --version 1.0.0-alpha.0
Output:
NAME: kb-addon-orc
LAST DEPLOYED: Mon Apr 7 21:37:37 2025
NAMESPACE: kb-system
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
1. Get the application URL by running these commands:
Release Information:
Commit ID: "c570589dba3562ace3301c90c41f65d3ce84f7ba"
Commit Time: "2025-03-27 11:27:50 +0800"
Release Branch: "v1.0.0-beta.41"
Release Time: "2025-04-02 14:22:42 +0800"
Enterprise: "false"
- Check the Helm release list:
helm list -A
Output:
kb-addon-orc kb-system 1 2025-04-07 21:37:37.567972 +0800 CST deployed orchestrator-1.0.0-alpha.0 3.2.6
- Check the ComponentDefinition resources:
kubectl get cmpd
Output:
NAME SERVICE SERVICE-VERSION STATUS AGE
orchestrator-raft-1.0.0-alpha.0 orchestrator 3.2.6 19s
orchestrator-shared-backend-1.0.0-alpha.0 orchestrator 3.2.6 19s
Note: The STATUS field remains empty and does not transition to Available.
- Inspect controller logs:
2025-04-07T13:38:21.061Z INFO ComponentDefinition.apps.kubeblocks.io "orchestrator-raft-1.0.0-alpha.0" is invalid: spec.configs[0].templateRef: Invalid value: "": spec.configs[0].templateRef in body should match '^[a-z0-9]([a-z0-9\.\-]*[a-z0-9])?$' {"controller": "componentdefinition", "controllerGroup": "apps.kubeblocks.io", "controllerKind": "ComponentDefinition", "ComponentDefinition": {"name":"orchestrator-raft-1.0.0-alpha.0"}, "namespace": "", "name": "orchestrator-raft-1.0.0-alpha.0", "reconcileID": "20ed842d-09cd-442b-bdfc-a462539626b6", "component": {"name":"orchestrator-raft-1.0.0-alpha.0"}}
2025-04-07T13:38:21.061Z ERROR Reconciler error {"controller": "componentdefinition", "controllerGroup": "apps.kubeblocks.io", "controllerKind": "ComponentDefinition", "ComponentDefinition": {"name":"orchestrator-raft-1.0.0-alpha.0"}, "namespace": "", "name": "orchestrator-raft-1.0.0-alpha.0", "reconcileID": "20ed842d-09cd-442b-bdfc-a462539626b6", "error": "ComponentDefinition.apps.kubeblocks.io \"orchestrator-raft-1.0.0-alpha.0\" is invalid: spec.configs[0].templateRef: Invalid value: \"\": spec.configs[0].templateRef in body should match '^[a-z0-9]([a-z0-9\\.\\-]*[a-z0-9])?$'"}
Version
Kubernetes: v1.31.7-eks-bcf3d70 KubeBlocks: 1.0.0-beta.35
Additional context Add any other context about the problem here.
the error msg shows: invalid: spec.configs[0].templateRef
Since beta35,, this API templateRef has been rename to template. Please update your helm repo and try again.
Or use following repos:
- github: https://apecloud.github.io/helm-charts
E.g.
❯ kbcli version
Kubernetes: v1.29.2
KubeBlocks: 1.0.0-beta.41
kbcli: 1.0.0-beta.13
❯ helm repo add kb-github https://apecloud.github.io/helm-charts
❯ helm repo update
❯ helm search repo kb-github/orchestrator --devel --versions
NAME CHART VERSION APP VERSION DESCRIPTION
kb-github/orchestrator 1.0.0-alpha.0 3.2.6 Orchestrator is a MySQL high availability and r...
kb-github/orchestrator 0.9.0 3.2.6 Orchestrator is a MySQL high availability and r...
❯ helm -n kb-system upgrade -i orchestrator kb-github/orchestrator --version 1.0.0-alpha.0
Release "orchestrator" does not exist. Installing it now.
NAME: orchestrator
LAST DEPLOYED: Tue Apr 8 09:58:29 2025
NAMESPACE: kb-system
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
1. Get the application URL by running these commands:
Release Information:
Commit ID: "c570589dba3562ace3301c90c41f65d3ce84f7ba"
Commit Time: "2025-03-27 11:27:50 +0800"
Release Branch: "v1.0.0-beta.41"
Release Time: "2025-04-02 14:22:42 +0800"
Enterprise: "false"
❯ k get cmpd -l app.kubernetes.io/name=orchestrator
NAME SERVICE SERVICE-VERSION STATUS AGE
orchestrator-raft-1.0.0-alpha.0 orchestrator 3.2.6 Available 33s
orchestrator-shared-backend-1.0.0-alpha.0 orchestrator 3.2.6 Available 33s
Both CMPD goes available soon.
This issue has been marked as stale because it has been open for 30 days with no activity