Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

Commit

Permalink
Sync with arg (#53)
Browse files Browse the repository at this point in the history
Sync hostgroup with new arg
  • Loading branch information
Rub& committed Jul 31, 2019
1 parent d941cf3 commit 87876c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions docker/files/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ if [[ "${1}" = "--cluster" ]]; then
elif [[ "${1}" = "--sync_cluster" ]]; then
proxysql -f --initial &> /dev/null &
set -- proxysql-cli sync:cluster
elif [[ "${1}" = "--sync_default_hostgroup" ]]; then
proxysql -f --initial &> /dev/null &
set -- proxysql-cli sync:default-hostgroup
else
set -- proxysql -f "$@"
fi
Expand Down
5 changes: 2 additions & 3 deletions k8s/proxysql-sync-default-hostgroup.cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@ spec:
restartPolicy: OnFailure
containers:
- name: proxysql-sync-default-hostgroup
image: "scienta/k8s-proxysql-cluster:1.0.0"
image: "scienta/k8s-proxysql-cluster:1.2.1"
imagePullPolicy: Always
command: ["proxysql-cli"]
args: ["sync:default-hostgroup"]
args: ["--sync_default_hostgroup"]

env:
- name: PROXYSQL_SERVICE
Expand Down

0 comments on commit 87876c9

Please sign in to comment.