You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by mi...@apache.org on 2023/03/16 10:29:08 UTC

[shardingsphere-on-cloud] branch main updated: chore(operator): add some check when install operator by helm (#269)

This is an automated email from the ASF dual-hosted git repository.

miaoliyao pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/shardingsphere-on-cloud.git


The following commit(s) were added to refs/heads/main by this push:
     new ccfe22a  chore(operator): add some check when install operator by helm (#269)
ccfe22a is described below

commit ccfe22afc64d3cabfccfed61ca541f06a8fa46bd
Author: Xu-Wentao <cu...@yahoo.com>
AuthorDate: Thu Mar 16 18:29:02 2023 +0800

    chore(operator): add some check when install operator by helm (#269)
---
 .../templates/operator_deployment.yaml                              | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/charts/apache-shardingsphere-operator-charts/templates/operator_deployment.yaml b/charts/apache-shardingsphere-operator-charts/templates/operator_deployment.yaml
index 06d4755..6f1ab40 100644
--- a/charts/apache-shardingsphere-operator-charts/templates/operator_deployment.yaml
+++ b/charts/apache-shardingsphere-operator-charts/templates/operator_deployment.yaml
@@ -15,6 +15,12 @@
 # limitations under the License.
 #
 
+# Check Zookeeper settings
+# if enabled zookeeper's persistence, should set correct storageClass for it
+{{- if .Values.zookeeper.persistence.enabled }}
+{{- required "Detected .Values.zookeeper.persistence.enabled is true, please set a correct .Values.zookeeper.persistence.storageClass !" .Values.zookeeper.persistence.storageClass -}}
+{{- end }}
+---
 apiVersion: apps/v1
 kind: Deployment
 metadata: