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/08 10:53:06 UTC
[shardingsphere-on-cloud] branch main updated: check zookeeper settings to make sure pull up zookeeper success when user want to use persistence (#248)
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 2f575be check zookeeper settings to make sure pull up zookeeper success when user want to use persistence (#248)
2f575be is described below
commit 2f575bec3adc2937ac351e851bd6689ee1cee3a9
Author: Xu-Wentao <cu...@yahoo.com>
AuthorDate: Wed Mar 8 18:52:59 2023 +0800
check zookeeper settings to make sure pull up zookeeper success when user want to use persistence (#248)
Co-authored-by: xuwentao <xu...@SphereEX-xuwentao.local>
---
.gitignore | 3 ++-
.../apache-shardingsphere-proxy-charts/templates/deployment.yaml | 7 ++++++-
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/.gitignore b/.gitignore
index 6fc2d05..bf0cc27 100644
--- a/.gitignore
+++ b/.gitignore
@@ -19,6 +19,7 @@ testbin/*
!vendor/**/zz_generated.*
# editor and IDE paraphernalia
+.DS_Store
.vscode
.fleet
.idea
@@ -27,7 +28,7 @@ testbin/*
*~
shardingsphere-operator/build/certs/
shardingsphere-operator/config/
-charts/apache-shardingsphere-operator-cluster-charts/charts/
+charts/apache-shardingsphere-proxy-charts/charts/
charts/apache-shardingsphere-operator-charts/charts/
**/Chart.lock
test
diff --git a/charts/apache-shardingsphere-proxy-charts/templates/deployment.yaml b/charts/apache-shardingsphere-proxy-charts/templates/deployment.yaml
index 655d7b4..c7e14d7 100644
--- a/charts/apache-shardingsphere-proxy-charts/templates/deployment.yaml
+++ b/charts/apache-shardingsphere-proxy-charts/templates/deployment.yaml
@@ -13,8 +13,13 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-#
+# Check Zookeeper settings
+# if enabled zookeeper's persistence, should set correct storageClass for it
+{{- if .Values.governance.zookeeper.persistence.enabled }}
+{{- required "Detected .Values.governance.zookeeper.persistence.enabled is true, please set a correct .Values.governance.zookeeper.persistence.storageClass !" .Values.governance.zookeeper.persistence.storageClass -}}
+{{- end }}
+---
apiVersion: apps/v1
kind: Deployment
metadata: