You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by pa...@apache.org on 2022/04/01 08:38:15 UTC

[shardingsphere] branch master updated: Add README file and fix ci license check error (#16538)

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

panjuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 7557820  Add README file and fix ci license check error (#16538)
7557820 is described below

commit 7557820b184531dcc82b388a6f24c7a4dc6deeea
Author: Ghoul_Lee <wi...@gmail.com>
AuthorDate: Fri Apr 1 16:35:39 2022 +0800

    Add README file and fix ci license check error (#16538)
    
    * ADD:
    1. Add README.md README_ZH.md for charts
    2. Add license check exclude for helmignore && _helpers.tpl file
    FIX:
    1. Fixed some document formatting
    
    * update .licenserc.yaml
    
    * change Format
    
    * ADD license Header
---
 .licenserc.yaml                                    |   2 +
 .../shardingsphere-proxy/startup/helm.cn.md        |  68 ++++++-------
 .../shardingsphere-proxy/startup/helm.en.md        |  28 +++---
 pom.xml                                            |   3 +
 .../helm.en.md => shardingsphere-charts/README.md  |  28 +++---
 shardingsphere-charts/README_ZH.md                 | 107 +++++++++++++++++++++
 .../shardingsphere-proxy/charts/mysql/.helmignore  |  17 ++++
 .../shardingsphere-proxy/charts/mysql/Chart.yaml   |   1 +
 .../charts/mysql/templates/_helpers.tpl            |   0
 .../charts/mysql/templates/configmap.yaml          |   2 +-
 .../charts/mysql/templates/deployment.yaml         |   2 +-
 .../charts/mysql/templates/pvc.yaml                |   2 +-
 .../charts/mysql/templates/secret.yaml             |   2 +-
 .../charts/mysql/templates/service.yaml            |   2 +-
 .../charts/zookeeper/.helmignore                   |  17 ++++
 .../charts/zookeeper/templates/service.yaml        |   2 +-
 .../charts/zookeeper/templates/zookeeper.yaml      |   2 +-
 .../charts/zookeeper/values.yaml                   |   2 +-
 .../shardingsphere-proxy/conf/config-sharding.yaml |   2 +-
 .../shardingsphere-proxy/conf/server.yaml          |   2 +-
 .../shardingsphere-proxy/templates/_helpers.tpl    |  16 +++
 .../shardingsphere-proxy/templates/configmap.yaml  |   2 +-
 22 files changed, 236 insertions(+), 73 deletions(-)

diff --git a/.licenserc.yaml b/.licenserc.yaml
index 282e41e..e6735dc 100644
--- a/.licenserc.yaml
+++ b/.licenserc.yaml
@@ -33,6 +33,8 @@ header:
     - '**/*.json'
     - '**/*.iml'
     - '**/*.ini'
+    - '**/_helpers.tpl'
+    - '**/.helmignore'
     - 'LICENSE'
     - 'NOTICE'
     - '**/release-docs/**'
diff --git a/docs/document/content/user-manual/shardingsphere-proxy/startup/helm.cn.md b/docs/document/content/user-manual/shardingsphere-proxy/startup/helm.cn.md
index 8da3f6e..227a773 100644
--- a/docs/document/content/user-manual/shardingsphere-proxy/startup/helm.cn.md
+++ b/docs/document/content/user-manual/shardingsphere-proxy/startup/helm.cn.md
@@ -3,16 +3,16 @@ title = "使用 Helm"
 weight = 3
 +++
 # ShardingSphere-Proxy Helm Chart
-## **太长不看版**
+## **TL;DR**
 
 ```
 helm repo add shardingsphere https://shardingsphere.apache.org/charts
 helm install shardingsphere-proxy shardingsphere/shardingsphere-proxy
 ```
 
-## shardingsphere-proxy 介绍
+## ShardingSphere-Proxy 介绍
 
-这个charts 使用helm工具在一个kubernetes集群中引导 一个shardingsphere-proxy 实例进行安装
+这个charts 使用 helm 工具在一个 kubernetes 集群中引导 一个 ShardingSphere-Proxy 实例进行安装
 
 
 
@@ -26,17 +26,17 @@ helm 3.2.0+
 
 如需要持久化数据:
 
-可以动态申请pv 的strogeclass支持
+可以动态申请 PV(Persistent Volumes) 的 storageclass 支持
 
-## 安装shardingsphere-proxy chart
+## 安装 ShardingSphere-Proxy chart
 
-将 shardingsphere-proxy 添加到helm 本地仓库
+将 ShardingSphere-Proxy 添加到 helm 本地仓库
 
 ```shell
 helm repo add shardingsphere https://shardingsphere.apache.org/charts
 ```
 
-以shardingsphere-proxy 命名安装charts
+以 ShardingSphere-Proxy 命名安装 charts
 
 ```shell
 helm install shardingsphere-proxy shardingsphere/shardingsphere-proxy
@@ -44,7 +44,7 @@ helm install shardingsphere-proxy shardingsphere/shardingsphere-proxy
 
 执行上述命令后会以默认的配置进行安装。其他的配置详见下方的配置列表。
 
-如果需要获取所有安装的release ,可以执行```helm list```
+如果需要获取所有安装的 release ,可以执行```helm list```
 
 ## 卸载
 
@@ -63,43 +63,43 @@ helm uninstall 会默认删除所有发布记录,如果需要留下发布记
 
 | Name                        | Description                                                                     | Value |
 | --------------------------- | ------------------------------------------------------------------------------- | ----- |
-| `global.resources.limits`   | The resources limits for the shardingsphere-proxy,mysql,zookeeper containers    | `{}`  |
-| `global.resources.requests` | The requested resources for the shardingsphere-proxy,mysql,zookeeper containers | `{}`  |
+| `global.resources.limits`   | The resources limits for the ShardingSphere-Proxy,MySQL,ZooKeeper containers    | `{}`  |
+| `global.resources.requests` | The requested resources for the ShardingSphere-Proxy,MySQL,ZooKeeper containers | `{}`  |
 
 
-#### mysql parameters
+#### MySQL parameters
 
-| Name                   | Description               | Value  |
-| ---------------------- | ------------------------- | ------ |
-| `mysql.enabled`        | 开启mysql子charts依赖          | `true` |
-| `mysql.storageclass`   | mysql持久化存储需要的storageclass | `nil`  |
-| `mysql.storagerequest` | mysql持久化存储需要的空间           | `nil`  |
+| Name                   | Description                | Value  |
+| ---------------------- |----------------------------| ------ |
+| `mysql.enabled`        | 开启 MySQL 子 charts 依赖       | `true` |
+| `mysql.storageclass`   | MySQL持久化存储需要的 storageclass | `nil`  |
+| `mysql.storagerequest` | MySQL持久化存储需要的空间            | `nil`  |
 
 
-#### zookeeper parameters
+#### ZooKeeper parameters
 
-| Name                       | Description                   | Value  |
-| -------------------------- | ----------------------------- | ------ |
-| `zookeeper.enabled`        | 开启zookeeper子charts依赖          | `true` |
-| `zookeeper.storageclass`   | zookeeper持久化存储需要的storageclass | `nil`  |
-| `zookeeper.storagerequest` | zookeeper持久化存储需要的空间           | `nil`  |
+| Name                       | Description                    | Value  |
+| -------------------------- |--------------------------------| ------ |
+| `zookeeper.enabled`        | 开启ZooKeeper子 charts 依赖         | `true` |
+| `zookeeper.storageclass`   | ZooKeeper持久化存储需要的 storageclass | `nil`  |
+| `zookeeper.storagerequest` | ZooKeeper持久化存储需要的空间            | `nil`  |
 
 
-#### shardingsphere-proxy parameters
+#### ShardingSphere-Proxy parameters
 
-| Name                     | Description                                | Value                         |
-| ------------------------ | ------------------------------------------ | ----------------------------- |
-| `image.repository`       | shardingsphere-proxy镜像名,默认是从apache官方镜像仓库拉取 | `apache/shardingsphere-proxy` |
-| `image.pullPolicy`       | 镜像拉取策略                                     | `IfNotPresent`                |
-| `image.tag`              | 镜像tag                                      | `5.1.0`                       |
-| `replicas`               | shardingsphere-proxy集群模式副本数                | `3`                           |
-| `service.type`           | shardingsphere-proxy网络模式                   | `NodePort`                    |
-| `mysqlconnector.enabled` | mysql驱动开启开关                                | `true`                        |
-| `mysqlconnector.version` | mysql驱动版本                                  | `5.1.49`                      |
-| `proxyport`              | 启动端口                                       | `3307`                        |
+| Name                     | Description                                   | Value                         |
+| ------------------------ |-----------------------------------------------| ----------------------------- |
+| `image.repository`       | ShardingSphere-Proxy 镜像名,默认是从 apache 官方镜像仓库拉取 | `apache/shardingsphere-proxy` |
+| `image.pullPolicy`       | 镜像拉取策略                                        | `IfNotPresent`                |
+| `image.tag`              | 镜像 tag                                        | `5.1.0`                       |
+| `replicas`               | ShardingSphere-Proxy 集群模式副本数                  | `3`                           |
+| `service.type`           | ShardingSphere-Proxy 网络模式                     | `NodePort`                    |
+| `mysqlconnector.enabled` | MySQL 驱动开启开关                                  | `true`                        |
+| `mysqlconnector.version` | MySQL 驱动版本                                    | `5.1.49`                      |
+| `proxyport`              | 启动端口                                          | `3307`                        |
 
 
-### 相关配置详见 shardingsphere 文档
+### ShardingSphere-Proxy config.yaml && server.yaml 相关配置详见 ShardingSphere 文档
 
 [YAML 配置 :: ShardingSphere (apache.org)](https://shardingsphere.apache.org/document/5.1.0/cn/user-manual/shardingsphere-jdbc/yaml-config/)
 
diff --git a/docs/document/content/user-manual/shardingsphere-proxy/startup/helm.en.md b/docs/document/content/user-manual/shardingsphere-proxy/startup/helm.en.md
index f1dd8cc..37fbaa1 100644
--- a/docs/document/content/user-manual/shardingsphere-proxy/startup/helm.en.md
+++ b/docs/document/content/user-manual/shardingsphere-proxy/startup/helm.en.md
@@ -9,8 +9,8 @@ helm repo add shardingsphere https://shardingsphere.apache.org/charts
 helm install shardingsphere-proxy shardingsphere/shardingsphere-proxy
 ```
 
-## Introduction to shardingsphere-proxy
-These charts use the Helm tool to provide guidance for the installation of a shardingsphere-proxy instance in a Kubernetes cluster.
+## Introduction to ShardingSphere-Proxy
+These charts use the Helm tool to provide guidance for the installation of a ShardingSphere-Proxy instance in a Kubernetes cluster.
 
 ## Requirements
 Kubernetes 1.18+
@@ -19,13 +19,13 @@ Helm 3.2.0+
 If you need persistent data:
 Please configure StorageClass that allows dynamic provisioning of Persistent Volumes (PV)
 
-## Install shardingsphere-proxy chart
-Add shardingsphere-proxy to the local helm repo
+## Install ShardingSphere-Proxy chart
+Add ShardingSphere-Proxy to the local helm repo
 ```
 helm repo add shardingsphere https://shardingsphere.apache.org/charts
 ```
 
-Install shardingsphere-proxy charts
+Install ShardingSphere-Proxy charts
 ```
 helm install shardingsphere-proxy shardingsphere/shardingsphere-proxy
 ```
@@ -47,35 +47,35 @@ helm uninstall will delete all release records by default. If you need to keep t
 #### Global parameters
 | Name                        | Description                                                                       | Value |
 | --------------------------- | --------------------------------------------------------------------------------- | ----- |
-| `global.resources.limits`   | The resources limits for the shardingsphere-proxy, MySQL, ZooKeeper. containers    | `{}`  |
-| `global.resources.requests` | The requested resources for the shardingsphere-proxy, MySQL, ZooKeeper containers. | `{}`  |
+| `global.resources.limits`   | The resources limits for the ShardingSphere-Proxy, MySQL, ZooKeeper. containers    | `{}`  |
+| `global.resources.requests` | The requested resources for the ShardingSphere-Proxy, MySQL, ZooKeeper containers. | `{}`  |
 
-#### mysql parameters
+#### MySQL parameters
 | Name                   | Description                                      | Value |
 | ---------------------- | ------------------------------------------------ | ----- |
 | `mysql.enabled`        | Enable MySQL sub-charts dependency.               | `TRUE`  |
 | `mysql.storageclass`   | Storage class needed by MySQL persistent storage. | `nil`   |
 | `mysql.storagerequest` | Space for MySQL persistent storage.               | `nil`   |
 
-#### zookeeper parameters
+#### ZooKeeper parameters
 | Name                       | Description                                           | Value  |
 | -------------------------- |-------------------------------------------------------| ------ |
 | `zookeeper.enabled`        | Enable ZooKeeper sub-charts dependency.               | `TRUE` |
 | `zookeeper.storageclass`   | Storage class needed by ZooKeeper persistent storage. | `nil`  |
 | `zookeeper.storagerequest` | Space for ZooKeeper persistent storage.               | `nil`  |
 
-#### shardingsphere-proxy parameters
+#### ShardingSphere-Proxy parameters
 | Name                       | Description                                                                                                      | Value  |
 | -------------------------- |------------------------------------------------------------------------------------------------------------------| ------ |
-|`image.repository`       | shardingsphere-proxy's image name. The default setting is to pull it from the Apache official-images repository. | `apache/shardingsphere-proxy` |
+|`image.repository`       | ShardingSphere-Proxy's image name. The default setting is to pull it from the Apache official-images repository. | `apache/shardingsphere-proxy` |
 | `image.pullPolicy` | The policy for pulling an image.                                                                                 | `IfNotPresent` |
 | `image.tag`| Image tag.                                                                                                       |`5.1.0`  |
-| `replicas`| Number of cluster-mode replicas in shardingsphere-proxy.                                                         |`3`  |
-|`service.type`| shardingsphere-proxy network mode.                                                                               |`NodePort`|
+| `replicas`| Number of cluster-mode replicas in ShardingSphere-Proxy.                                                         |`3`  |
+|`service.type`| ShardingSphere-Proxy network mode.                                                                               |`NodePort`|
 | `mysqlconnector.enabled`| MySQL connector enabled.                                                                                         |`TRUE`  |
 | `mysqlconnector.version` | MySQL connector Version                                                                                          | `5.1.49`                      |
 | `proxyport`| start port                                                                                                       |`3307` |
 
-### shardingsphere-proxy config.yaml && server.yaml configuration
+### ShardingSphere-Proxy config.yaml && server.yaml configuration
 For more configuration information, please refer to the following link: [YAML Configuration :: ShardingSphere (apache.org)](https://shardingsphere.apache.org/document/5.1.0/en/user-manual/shardingsphere-jdbc/yaml-config/)
 
diff --git a/pom.xml b/pom.xml
index 12303b2..54783ea 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1136,6 +1136,9 @@
                         <exclude>**/package-lock.json</exclude>
                         <!-- example files -->
                         <exclude>/examples/**</exclude>
+                        <!-- Helm files -->
+                        <exclude>**/.helmignore</exclude>
+                        <exclude>**/_helpers.tpl</exclude>
                     </excludes>
                 </configuration>
                 <executions>
diff --git a/docs/document/content/user-manual/shardingsphere-proxy/startup/helm.en.md b/shardingsphere-charts/README.md
similarity index 82%
copy from docs/document/content/user-manual/shardingsphere-proxy/startup/helm.en.md
copy to shardingsphere-charts/README.md
index f1dd8cc..37fbaa1 100644
--- a/docs/document/content/user-manual/shardingsphere-proxy/startup/helm.en.md
+++ b/shardingsphere-charts/README.md
@@ -9,8 +9,8 @@ helm repo add shardingsphere https://shardingsphere.apache.org/charts
 helm install shardingsphere-proxy shardingsphere/shardingsphere-proxy
 ```
 
-## Introduction to shardingsphere-proxy
-These charts use the Helm tool to provide guidance for the installation of a shardingsphere-proxy instance in a Kubernetes cluster.
+## Introduction to ShardingSphere-Proxy
+These charts use the Helm tool to provide guidance for the installation of a ShardingSphere-Proxy instance in a Kubernetes cluster.
 
 ## Requirements
 Kubernetes 1.18+
@@ -19,13 +19,13 @@ Helm 3.2.0+
 If you need persistent data:
 Please configure StorageClass that allows dynamic provisioning of Persistent Volumes (PV)
 
-## Install shardingsphere-proxy chart
-Add shardingsphere-proxy to the local helm repo
+## Install ShardingSphere-Proxy chart
+Add ShardingSphere-Proxy to the local helm repo
 ```
 helm repo add shardingsphere https://shardingsphere.apache.org/charts
 ```
 
-Install shardingsphere-proxy charts
+Install ShardingSphere-Proxy charts
 ```
 helm install shardingsphere-proxy shardingsphere/shardingsphere-proxy
 ```
@@ -47,35 +47,35 @@ helm uninstall will delete all release records by default. If you need to keep t
 #### Global parameters
 | Name                        | Description                                                                       | Value |
 | --------------------------- | --------------------------------------------------------------------------------- | ----- |
-| `global.resources.limits`   | The resources limits for the shardingsphere-proxy, MySQL, ZooKeeper. containers    | `{}`  |
-| `global.resources.requests` | The requested resources for the shardingsphere-proxy, MySQL, ZooKeeper containers. | `{}`  |
+| `global.resources.limits`   | The resources limits for the ShardingSphere-Proxy, MySQL, ZooKeeper. containers    | `{}`  |
+| `global.resources.requests` | The requested resources for the ShardingSphere-Proxy, MySQL, ZooKeeper containers. | `{}`  |
 
-#### mysql parameters
+#### MySQL parameters
 | Name                   | Description                                      | Value |
 | ---------------------- | ------------------------------------------------ | ----- |
 | `mysql.enabled`        | Enable MySQL sub-charts dependency.               | `TRUE`  |
 | `mysql.storageclass`   | Storage class needed by MySQL persistent storage. | `nil`   |
 | `mysql.storagerequest` | Space for MySQL persistent storage.               | `nil`   |
 
-#### zookeeper parameters
+#### ZooKeeper parameters
 | Name                       | Description                                           | Value  |
 | -------------------------- |-------------------------------------------------------| ------ |
 | `zookeeper.enabled`        | Enable ZooKeeper sub-charts dependency.               | `TRUE` |
 | `zookeeper.storageclass`   | Storage class needed by ZooKeeper persistent storage. | `nil`  |
 | `zookeeper.storagerequest` | Space for ZooKeeper persistent storage.               | `nil`  |
 
-#### shardingsphere-proxy parameters
+#### ShardingSphere-Proxy parameters
 | Name                       | Description                                                                                                      | Value  |
 | -------------------------- |------------------------------------------------------------------------------------------------------------------| ------ |
-|`image.repository`       | shardingsphere-proxy's image name. The default setting is to pull it from the Apache official-images repository. | `apache/shardingsphere-proxy` |
+|`image.repository`       | ShardingSphere-Proxy's image name. The default setting is to pull it from the Apache official-images repository. | `apache/shardingsphere-proxy` |
 | `image.pullPolicy` | The policy for pulling an image.                                                                                 | `IfNotPresent` |
 | `image.tag`| Image tag.                                                                                                       |`5.1.0`  |
-| `replicas`| Number of cluster-mode replicas in shardingsphere-proxy.                                                         |`3`  |
-|`service.type`| shardingsphere-proxy network mode.                                                                               |`NodePort`|
+| `replicas`| Number of cluster-mode replicas in ShardingSphere-Proxy.                                                         |`3`  |
+|`service.type`| ShardingSphere-Proxy network mode.                                                                               |`NodePort`|
 | `mysqlconnector.enabled`| MySQL connector enabled.                                                                                         |`TRUE`  |
 | `mysqlconnector.version` | MySQL connector Version                                                                                          | `5.1.49`                      |
 | `proxyport`| start port                                                                                                       |`3307` |
 
-### shardingsphere-proxy config.yaml && server.yaml configuration
+### ShardingSphere-Proxy config.yaml && server.yaml configuration
 For more configuration information, please refer to the following link: [YAML Configuration :: ShardingSphere (apache.org)](https://shardingsphere.apache.org/document/5.1.0/en/user-manual/shardingsphere-jdbc/yaml-config/)
 
diff --git a/shardingsphere-charts/README_ZH.md b/shardingsphere-charts/README_ZH.md
new file mode 100644
index 0000000..e6a89e9
--- /dev/null
+++ b/shardingsphere-charts/README_ZH.md
@@ -0,0 +1,107 @@
++++
+title = "使用 Helm"
+weight = 3
++++
+# ShardingSphere-Proxy Helm Chart
+## **TL;DR**
+
+```
+helm repo add shardingsphere https://shardingsphere.apache.org/charts
+helm install ShardingSphere-Proxy shardingsphere/ShardingSphere-Proxy
+```
+
+## ShardingSphere-Proxy 介绍
+
+这个 charts 使用 helm 工具在一个 kubernetes 集群中引导 一个 ShardingSphere-Proxy 实例进行安装
+
+
+
+## 必要条件
+
+kubernetes 1.18+
+
+kubectl
+
+helm 3.2.0+
+
+如需要持久化数据:
+
+可以动态申请 PV(Persistent Volumes) 的 storageclass 支持
+
+## 安装ShardingSphere-Proxy chart
+
+将 ShardingSphere-Proxy 添加到 helm 本地仓库
+
+```shell
+helm repo add shardingsphere https://shardingsphere.apache.org/charts
+```
+
+以 ShardingSphere-Proxy 命名安装 charts
+
+```shell
+helm install shardingsphere-proxy shardingsphere/shardingsphere-proxy
+```
+
+执行上述命令后会以默认的配置进行安装。其他的配置详见下方的配置列表。
+
+如果需要获取所有安装的 release ,可以执行```helm list```
+
+## 卸载
+
+如果要卸载上述安装的 release ,请执行
+
+```shell
+helm uninstall shardingsphere-proxy
+```
+
+helm uninstall 会默认删除所有发布记录,如果需要留下发布记录,请加上 ```--keep-history```
+
+## 配置项说明
+### Parameters
+
+#### Global parameters
+
+| Name                        | Description                                                                     | Value |
+| --------------------------- | ------------------------------------------------------------------------------- | ----- |
+| `global.resources.limits`   | The resources limits for the ShardingSphere-Proxy,MySQL,ZooKeeper containers    | `{}`  |
+| `global.resources.requests` | The requested resources for the ShardingSphere-Proxy,MySQL,ZooKeeper containers | `{}`  |
+
+
+#### MySQL parameters
+
+| Name                   | Description                 | Value  |
+|------------------------|-----------------------------| ------ |
+| `mysql.enabled`        | 开启 MySQL 子charts依赖          | `true` |
+| `mysql.storageclass`   | MySQL 持久化存储需要的 storageclass | `nil`  |
+| `mysql.storagerequest` | MySQL 持久化存储需要的空间            | `nil`  |
+
+
+#### ZooKeeper parameters
+
+| Name                       | Description                     | Value  |
+|----------------------------|---------------------------------| ------ |
+| `zookeeper.enabled`        | 开启 ZooKeeper 子charts依赖          | `true` |
+| `zookeeper.storageclass`   | ZooKeeper 持久化存储需要的 storageclass | `nil`  |
+| `zookeeper.storagerequest` | ZooKeeper 持久化存储需要的空间            | `nil`  |
+
+
+#### ShardingSphere-Proxy parameters
+
+| Name                     | Description                                   | Value                         |
+|--------------------------|-----------------------------------------------| ----------------------------- |
+| `image.repository`       | ShardingSphere-Proxy 镜像名,默认是从 apache 官方镜像仓库拉取 | `apache/ShardingSphere-Proxy` |
+| `image.pullPolicy`       | 镜像拉取策略                                        | `IfNotPresent`                |
+| `image.tag`              | 镜像 tag                                        | `5.1.0`                       |
+| `replicas`               | ShardingSphere-Proxy 集群模式副本数                  | `3`                           |
+| `service.type`           | ShardingSphere-Proxy 网络模式                     | `NodePort`                    |
+| `mysqlconnector.enabled` | MySQL 驱动开启开关                                  | `true`                        |
+| `mysqlconnector.version` | MySQL 驱动版本                                    | `5.1.49`                      |
+| `proxyport`              | 启动端口                                          | `3307`                        |
+
+
+### ShardingSphere-Proxy config.yaml && server.yaml 相关配置详见 shardingsphere 文档
+
+[YAML 配置 :: ShardingSphere (apache.org)](https://shardingsphere.apache.org/document/5.1.0/cn/user-manual/shardingsphere-jdbc/yaml-config/)
+
+
+
diff --git a/shardingsphere-charts/shardingsphere-proxy/charts/mysql/.helmignore b/shardingsphere-charts/shardingsphere-proxy/charts/mysql/.helmignore
index 0e8a0eb..c3de73b 100644
--- a/shardingsphere-charts/shardingsphere-proxy/charts/mysql/.helmignore
+++ b/shardingsphere-charts/shardingsphere-proxy/charts/mysql/.helmignore
@@ -1,3 +1,20 @@
+#
+#  Licensed to the Apache Software Foundation (ASF) under one or more
+#  contributor license agreements.  See the NOTICE file distributed with
+#  this work for additional information regarding copyright ownership.
+#  The ASF licenses this file to You under the Apache License, Version 2.0
+#  (the "License"); you may not use this file except in compliance with
+#  the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  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.
+#
+
 # Patterns to ignore when building packages.
 # This supports shell glob matching, relative path matching, and
 # negation (prefixed with !). Only one pattern per line.
diff --git a/shardingsphere-charts/shardingsphere-proxy/charts/mysql/Chart.yaml b/shardingsphere-charts/shardingsphere-proxy/charts/mysql/Chart.yaml
index d791666..b26d379 100644
--- a/shardingsphere-charts/shardingsphere-proxy/charts/mysql/Chart.yaml
+++ b/shardingsphere-charts/shardingsphere-proxy/charts/mysql/Chart.yaml
@@ -38,3 +38,4 @@ version: 1.0.0
 # follow Semantic Versioning. They should reflect the version the application is using.
 # It is recommended to use it with quotes.
 appVersion: "5.7"
+
diff --git a/shardingsphere-charts/shardingsphere-proxy/charts/mysql/templates/_helpers.tpl b/shardingsphere-charts/shardingsphere-proxy/charts/mysql/templates/_helpers.tpl
deleted file mode 100644
index e69de29..0000000
diff --git a/shardingsphere-charts/shardingsphere-proxy/charts/mysql/templates/configmap.yaml b/shardingsphere-charts/shardingsphere-proxy/charts/mysql/templates/configmap.yaml
index ccc7023..95e19e9 100644
--- a/shardingsphere-charts/shardingsphere-proxy/charts/mysql/templates/configmap.yaml
+++ b/shardingsphere-charts/shardingsphere-proxy/charts/mysql/templates/configmap.yaml
@@ -21,4 +21,4 @@ data:
     CREATE DATABASE IF NOT EXISTS k8s_2 DEFAULT CHARSET utf8 COLLATE utf8_general_ci;
 kind: ConfigMap
 metadata:
-  name: mysqlinit
\ No newline at end of file
+  name: mysqlinit
diff --git a/shardingsphere-charts/shardingsphere-proxy/charts/mysql/templates/deployment.yaml b/shardingsphere-charts/shardingsphere-proxy/charts/mysql/templates/deployment.yaml
index 3ae61d0..e58f325 100644
--- a/shardingsphere-charts/shardingsphere-proxy/charts/mysql/templates/deployment.yaml
+++ b/shardingsphere-charts/shardingsphere-proxy/charts/mysql/templates/deployment.yaml
@@ -57,4 +57,4 @@ spec:
         - name: mysql-data
           persistentVolumeClaim:
             claimName: mysql-data
-  {{- end }}
\ No newline at end of file
+  {{- end }}
diff --git a/shardingsphere-charts/shardingsphere-proxy/charts/mysql/templates/pvc.yaml b/shardingsphere-charts/shardingsphere-proxy/charts/mysql/templates/pvc.yaml
index b56bb93..7e324c2 100644
--- a/shardingsphere-charts/shardingsphere-proxy/charts/mysql/templates/pvc.yaml
+++ b/shardingsphere-charts/shardingsphere-proxy/charts/mysql/templates/pvc.yaml
@@ -26,4 +26,4 @@ spec:
   resources:
     requests:
       storage: {{.Values.storagerequest}}
-{{end}}
\ No newline at end of file
+{{end}}
diff --git a/shardingsphere-charts/shardingsphere-proxy/charts/mysql/templates/secret.yaml b/shardingsphere-charts/shardingsphere-proxy/charts/mysql/templates/secret.yaml
index 4922a8d..a71a9ed 100644
--- a/shardingsphere-charts/shardingsphere-proxy/charts/mysql/templates/secret.yaml
+++ b/shardingsphere-charts/shardingsphere-proxy/charts/mysql/templates/secret.yaml
@@ -20,4 +20,4 @@ stringData:
 kind: Secret
 metadata:
   name: mysqlrootpassword
-type: Opaque
\ No newline at end of file
+type: Opaque
diff --git a/shardingsphere-charts/shardingsphere-proxy/charts/mysql/templates/service.yaml b/shardingsphere-charts/shardingsphere-proxy/charts/mysql/templates/service.yaml
index d3ac40f..003e134 100644
--- a/shardingsphere-charts/shardingsphere-proxy/charts/mysql/templates/service.yaml
+++ b/shardingsphere-charts/shardingsphere-proxy/charts/mysql/templates/service.yaml
@@ -23,4 +23,4 @@ spec:
     - port: {{.Values.service.port | default 3306}}
   selector:
     app: mysql-init
-  type: {{.Values.service.type | default "ClusterIP"}}
\ No newline at end of file
+  type: {{.Values.service.type | default "ClusterIP"}}
diff --git a/shardingsphere-charts/shardingsphere-proxy/charts/zookeeper/.helmignore b/shardingsphere-charts/shardingsphere-proxy/charts/zookeeper/.helmignore
index 0e8a0eb..c3de73b 100644
--- a/shardingsphere-charts/shardingsphere-proxy/charts/zookeeper/.helmignore
+++ b/shardingsphere-charts/shardingsphere-proxy/charts/zookeeper/.helmignore
@@ -1,3 +1,20 @@
+#
+#  Licensed to the Apache Software Foundation (ASF) under one or more
+#  contributor license agreements.  See the NOTICE file distributed with
+#  this work for additional information regarding copyright ownership.
+#  The ASF licenses this file to You under the Apache License, Version 2.0
+#  (the "License"); you may not use this file except in compliance with
+#  the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  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.
+#
+
 # Patterns to ignore when building packages.
 # This supports shell glob matching, relative path matching, and
 # negation (prefixed with !). Only one pattern per line.
diff --git a/shardingsphere-charts/shardingsphere-proxy/charts/zookeeper/templates/service.yaml b/shardingsphere-charts/shardingsphere-proxy/charts/zookeeper/templates/service.yaml
index 089b07d..261f6dd 100644
--- a/shardingsphere-charts/shardingsphere-proxy/charts/zookeeper/templates/service.yaml
+++ b/shardingsphere-charts/shardingsphere-proxy/charts/zookeeper/templates/service.yaml
@@ -41,4 +41,4 @@ spec:
     - port: 2181
       name: client
   selector:
-    app: zk
\ No newline at end of file
+    app: zk
diff --git a/shardingsphere-charts/shardingsphere-proxy/charts/zookeeper/templates/zookeeper.yaml b/shardingsphere-charts/shardingsphere-proxy/charts/zookeeper/templates/zookeeper.yaml
index 083e8aa..5f267e6 100644
--- a/shardingsphere-charts/shardingsphere-proxy/charts/zookeeper/templates/zookeeper.yaml
+++ b/shardingsphere-charts/shardingsphere-proxy/charts/zookeeper/templates/zookeeper.yaml
@@ -81,4 +81,4 @@ spec:
         resources:
           requests:
             storage: {{.Values.storagerequest}}
-  {{- end}}
\ No newline at end of file
+  {{- end}}
diff --git a/shardingsphere-charts/shardingsphere-proxy/charts/zookeeper/values.yaml b/shardingsphere-charts/shardingsphere-proxy/charts/zookeeper/values.yaml
index c5a68d2..bec2608 100644
--- a/shardingsphere-charts/shardingsphere-proxy/charts/zookeeper/values.yaml
+++ b/shardingsphere-charts/shardingsphere-proxy/charts/zookeeper/values.yaml
@@ -20,4 +20,4 @@ storageclass:
 storagerequest:
 image:
   repository: zookeeper
-  tag: "3.6.3"
\ No newline at end of file
+  tag: "3.6.3"
diff --git a/shardingsphere-charts/shardingsphere-proxy/conf/config-sharding.yaml b/shardingsphere-charts/shardingsphere-proxy/conf/config-sharding.yaml
index dbc3f72..f1b9e46 100644
--- a/shardingsphere-charts/shardingsphere-proxy/conf/config-sharding.yaml
+++ b/shardingsphere-charts/shardingsphere-proxy/conf/config-sharding.yaml
@@ -84,4 +84,4 @@ rules:
         dataConsistencyChecker:
           type: DATA_MATCH
           props:
-            chunk-size: 1000
\ No newline at end of file
+            chunk-size: 1000
diff --git a/shardingsphere-charts/shardingsphere-proxy/conf/server.yaml b/shardingsphere-charts/shardingsphere-proxy/conf/server.yaml
index 65e86d2..f3bb2c1 100644
--- a/shardingsphere-charts/shardingsphere-proxy/conf/server.yaml
+++ b/shardingsphere-charts/shardingsphere-proxy/conf/server.yaml
@@ -42,4 +42,4 @@ props:
   proxy-frontend-flush-threshold: 128  # The default value is 128.
   proxy-opentracing-enabled: false
   proxy-hint-enabled: false
-  sql-show: false
\ No newline at end of file
+  sql-show: false
diff --git a/shardingsphere-charts/shardingsphere-proxy/templates/_helpers.tpl b/shardingsphere-charts/shardingsphere-proxy/templates/_helpers.tpl
index 58c170c..a5b908f 100644
--- a/shardingsphere-charts/shardingsphere-proxy/templates/_helpers.tpl
+++ b/shardingsphere-charts/shardingsphere-proxy/templates/_helpers.tpl
@@ -1,3 +1,19 @@
+{{/*
+   * Licensed to the Apache Software Foundation (ASF) under one or more
+   * contributor license agreements.  See the NOTICE file distributed with
+   * this work for additional information regarding copyright ownership.
+   * The ASF licenses this file to You under the Apache License, Version 2.0
+   * (the "License"); you may not use this file except in compliance with
+   * the License.  You may obtain a copy of the License at
+   *
+   *     http://www.apache.org/licenses/LICENSE-2.0
+   *
+   * Unless required by applicable law or agreed to in writing, software
+   * distributed under the License is distributed on an "AS IS" BASIS,
+   * 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.
+   */}}
 {{- define "zkAddr" }}
 {{- if .Values.zkAddr -}}
 {{ .Values.zkAddr -}}
diff --git a/shardingsphere-charts/shardingsphere-proxy/templates/configmap.yaml b/shardingsphere-charts/shardingsphere-proxy/templates/configmap.yaml
index 22ebbcd..b0fb642 100644
--- a/shardingsphere-charts/shardingsphere-proxy/templates/configmap.yaml
+++ b/shardingsphere-charts/shardingsphere-proxy/templates/configmap.yaml
@@ -19,4 +19,4 @@ kind: ConfigMap
 metadata:
   name: sharding-proxy
 data:
-{{ (.Files.Glob "conf/*").AsConfig |replace "__namespace__" .Release.Namespace | indent 2 }}
\ No newline at end of file
+{{ (.Files.Glob "conf/*").AsConfig |replace "__namespace__" .Release.Namespace | indent 2 }}