Skip to content

Commit 04b537b

Browse files
authored
fix: support graceful shutdown (#246)
* fix: support graceful shutdown
1 parent 0126d1e commit 04b537b

File tree

41 files changed

+123
-143
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+123
-143
lines changed

charts/admin-system-backend/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
apiVersion: v2
33
description: admin-system-backend helm charts
44
name: admin-system-backend
5-
version: 0.1.0
5+
version: 0.1.1
66
appVersion: v0.1.0
77
kubeVersion: ">=1.22.0-0"
88
maintainers:

charts/admin-system-backend/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# admin-system-backend
22

3-
![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![AppVersion: v0.1.0](https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat-square)
3+
![Version: 0.1.1](https://img.shields.io/badge/Version-0.1.1-informational?style=flat-square) ![AppVersion: v0.1.0](https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat-square)
44

55
admin-system-backend helm charts
66

charts/admin-system-cron/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
apiVersion: v2
33
description: admin-system-cron helm charts
44
name: admin-system-cron
5-
version: 0.1.0
5+
version: 0.1.1
66
appVersion: v0.1.0
77
kubeVersion: ">=1.22.0-0"
88
maintainers:

charts/admin-system-cron/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# admin-system-cron
22

3-
![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![AppVersion: v0.1.0](https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat-square)
3+
![Version: 0.1.1](https://img.shields.io/badge/Version-0.1.1-informational?style=flat-square) ![AppVersion: v0.1.0](https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat-square)
44

55
admin-system-cron helm charts
66

@@ -23,7 +23,7 @@ Kubernetes: `>=1.22.0-0`
2323

2424
| Key | Type | Default | Description |
2525
|-----|------|---------|-------------|
26-
| command[0] | string | `"/bin/sh"` | |
26+
| command[0] | string | `"bash"` | |
2727
| command[1] | string | `"-c"` | |
2828
| command[2] | string | `"scroll-admin-cron --config /app/config/admin-system-backend-config.json --http.port ${HTTP_PORT} --metrics --metrics.port ${METRICS_PORT}"` | |
2929
| controller.replicas | int | `1` | |

charts/admin-system-cron/values.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,12 @@ envFrom:
2929
- configMapRef:
3030
name: admin-system-cron-env
3131

32-
command: [
33-
"/bin/sh",
34-
"-c",
35-
"scroll-admin-cron --config /app/config/admin-system-backend-config.json \
36-
--http.port ${HTTP_PORT} \
37-
--metrics --metrics.port ${METRICS_PORT}",
38-
]
32+
command:
33+
- "bash"
34+
- "-c"
35+
- "scroll-admin-cron --config /app/config/admin-system-backend-config.json \
36+
--http.port ${HTTP_PORT} \
37+
--metrics --metrics.port ${METRICS_PORT}"
3938

4039
resources:
4140
requests:

charts/bridge-history-api/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
apiVersion: v2
33
description: bridge-history-api helm charts
44
name: bridge-history-api
5-
version: 0.1.0
5+
version: 0.1.1
66
appVersion: v0.1.0
77
kubeVersion: ">=1.22.0-0"
88
maintainers:

charts/bridge-history-api/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# bridge-history-api
22

3-
![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![AppVersion: v0.1.0](https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat-square)
3+
![Version: 0.1.1](https://img.shields.io/badge/Version-0.1.1-informational?style=flat-square) ![AppVersion: v0.1.0](https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat-square)
44

55
bridge-history-api helm charts
66

@@ -25,7 +25,7 @@ Kubernetes: `>=1.22.0-0`
2525
|-----|------|---------|-------------|
2626
| additionalContainers.redis.image | string | `"redis"` | |
2727
| additionalContainers.redis.name | string | `"redis"` | |
28-
| command[0] | string | `"/bin/sh"` | |
28+
| command[0] | string | `"bash"` | |
2929
| command[1] | string | `"-c"` | |
3030
| command[2] | string | `"bridgehistoryapi-api --config /app/conf/bridge-history-api-config.json --metrics --metrics.addr 0.0.0.0 --metrics.port ${METRICS_PORT} --log.debug"` | |
3131
| controller.replicas | int | `1` | |

charts/bridge-history-api/values.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,9 @@ image:
1313
tag: v4.4.71
1414

1515
command:
16-
[
17-
"/bin/sh",
18-
"-c",
19-
"bridgehistoryapi-api --config /app/conf/bridge-history-api-config.json --metrics --metrics.addr 0.0.0.0 --metrics.port ${METRICS_PORT} --log.debug",
20-
]
16+
- "bash"
17+
- "-c"
18+
- "bridgehistoryapi-api --config /app/conf/bridge-history-api-config.json --metrics --metrics.addr 0.0.0.0 --metrics.port ${METRICS_PORT} --log.debug"
2119

2220
env:
2321
- name: METRICS_PORT

charts/bridge-history-fetcher/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
apiVersion: v2
33
description: bridge-history-fetcher helm charts
44
name: bridge-history-fetcher
5-
version: 0.1.0
5+
version: 0.1.1
66
appVersion: v0.1.0
77
kubeVersion: ">=1.22.0-0"
88
maintainers:

charts/bridge-history-fetcher/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# bridge-history-fetcher
22

3-
![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![AppVersion: v0.1.0](https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat-square)
3+
![Version: 0.1.1](https://img.shields.io/badge/Version-0.1.1-informational?style=flat-square) ![AppVersion: v0.1.0](https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat-square)
44

55
bridge-history-fetcher helm charts
66

@@ -23,7 +23,7 @@ Kubernetes: `>=1.22.0-0`
2323

2424
| Key | Type | Default | Description |
2525
|-----|------|---------|-------------|
26-
| command[0] | string | `"/bin/sh"` | |
26+
| command[0] | string | `"bash"` | |
2727
| command[1] | string | `"-c"` | |
2828
| command[2] | string | `"bridgehistoryapi-fetcher --config /app/conf/bridge-history-fetcher-config.json --metrics --metrics.addr 0.0.0.0 --metrics.port ${METRICS_PORT} --log.debug"` | |
2929
| configMaps.migrate-db.data."migrate-db.json" | string | `"{\n \"l1\": {},\n \"l2\": {},\n \"db\": {\n \"driver_name\": \"postgres\",\n \"maxOpenNum\": 50,\n \"maxIdleNume\": 5,\n \"dsn\": \"\"\n }\n}\n"` | |

0 commit comments

Comments
 (0)