From f74b322fd250a2db4fec00a409a13ae72f8c13bf Mon Sep 17 00:00:00 2001 From: lancelot1989 Date: Fri, 20 Dec 2024 10:36:06 +0800 Subject: [PATCH] fix: orc addon missing COMPONENT_NAME var (#1347) (cherry picked from commit b50e3f06ebb4709fe7e5cd89fff9448a4519280c) --- addons/orchestrator/templates/cmpd-raft.yaml | 5 +++++ addons/orchestrator/templates/cmpd-shareend.yaml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/addons/orchestrator/templates/cmpd-raft.yaml b/addons/orchestrator/templates/cmpd-raft.yaml index 8f17f171d..ded8a15db 100644 --- a/addons/orchestrator/templates/cmpd-raft.yaml +++ b/addons/orchestrator/templates/cmpd-raft.yaml @@ -18,6 +18,11 @@ spec: writable: false votable: true vars: + - name: COMPONENT_NAME + valueFrom: + componentVarRef: + optional: false + componentName: Required - name: CLUSTER_NAME valueFrom: clusterVarRef: diff --git a/addons/orchestrator/templates/cmpd-shareend.yaml b/addons/orchestrator/templates/cmpd-shareend.yaml index 0000de086..52a7143e9 100644 --- a/addons/orchestrator/templates/cmpd-shareend.yaml +++ b/addons/orchestrator/templates/cmpd-shareend.yaml @@ -21,6 +21,11 @@ spec: - serviceKind: mysql serviceVersion: "^*" vars: + - name: COMPONENT_NAME + valueFrom: + componentVarRef: + optional: false + componentName: Required - name: CLUSTER_NAME valueFrom: clusterVarRef: