Skip to content

Commit

Permalink
Merge pull request #2 from flachesis/master
Browse files Browse the repository at this point in the history
add read-only user supported
  • Loading branch information
flachesis authored Sep 20, 2021
2 parents 0425fdf + c8b5e15 commit 29937c2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/proxysql/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.0.1
version: 1.1.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
1 change: 1 addition & 0 deletions charts/proxysql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ The following table lists the configurable parameters of the ProxySQL chart and
| `proxysql.mysql.servers.[].compression` | Compress data | `false` |
| `proxysql.mysql.users.[].username` | The user for connecting backend | `nil` |
| `proxysql.mysql.users.[].password` | The user's password | `nil` |
| `proxysql.mysql.users.[].readOnly` | Does the user is read only | `false` |
| `proxysql.mysql.users.[].maxConnections` | The max connections that the proxysql can handle | `10000` |
| `proxysql.mysql.slave.enabled` | Enable the traditional master/slave replication | `false` |
| `proxysql.mysql.slave.checkType` | check `read_only`, use `innodb_read_only` for AWS Aurora | `read_only` |
Expand Down
2 changes: 1 addition & 1 deletion charts/proxysql/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ data:
username="{{ required "mysql username is required!" $element.username }}"
password="{{ required "mysql passowrd is required!" $element.password }}"
use_ssl=0
default_hostgroup=1
default_hostgroup={{ (add1 (int $element.readOnly | default 0)) }}
transaction_persistent=1
active=1
max_connections={{ $element.maxConnections | default 10000 }}
Expand Down
1 change: 1 addition & 0 deletions charts/proxysql/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ proxysql:
# - username: name
# password: pwd
# maxConnections: 10000
# readOnly: false
slave:
enabled: false
checkType: "read_only"
Expand Down

0 comments on commit 29937c2

Please sign in to comment.