Skip to content

Commit e65afe6

Browse files
feat: use env var instead of secrets in config files (#109)
* feat: use env var instead of secrets in config files * remove comment
1 parent 0484bb2 commit e65afe6

18 files changed

Lines changed: 276 additions & 261 deletions

File tree

charts/bridge-history-api/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Kubernetes: `>=1.22.0-0`
4141
| global.nameOverride | string | `"bridge-history-api"` | |
4242
| image.pullPolicy | string | `"Always"` | |
4343
| image.repository | string | `"scrolltech/bridgehistoryapi-api"` | |
44-
| image.tag | string | `"v4.4.14"` | |
44+
| image.tag | string | `"v4.4.57"` | |
4545
| ingress.main.annotations | object | `{}` | |
4646
| ingress.main.enabled | bool | `true` | |
4747
| ingress.main.hosts[0].host | string | `"bridge-history-api.scrollsdk"` | |

charts/bridge-history-api/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ controller:
1010
image:
1111
repository: scrolltech/bridgehistoryapi-api
1212
pullPolicy: Always
13-
tag: v4.4.14
13+
tag: v4.4.57
1414

1515
command:
1616
[

charts/bridge-history-api/values/production.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ global:
44
controller:
55
replicas: 2
66

7+
envFrom:
8+
- secretRef:
9+
name: bridge-history-api-secret-env
10+
711
# TODO make this consistent with devnet, we should use bridge-history-api-config instead of bridge-history-config
812
persistence:
913
bridge-history-api:
@@ -27,3 +31,18 @@ ingress:
2731
paths:
2832
- path: /
2933
pathType: Prefix
34+
35+
externalSecrets:
36+
bridge-history-api-secret-env:
37+
provider: aws
38+
data:
39+
- remoteRef:
40+
key: scroll/bridge-history-api-secret-env
41+
property: SCROLL_BRIDGE_HISTORY_DB_DSN
42+
secretKey: SCROLL_BRIDGE_HISTORY_DB_DSN
43+
- remoteRef:
44+
key: scroll/bridge-history-api-env
45+
property: SCROLL_BRIDGE_HISTORY_REDIS_PASSWORD
46+
secretKey: SCROLL_BRIDGE_HISTORY_REDIS_PASSWORD
47+
refreshInterval: 2m
48+
serviceAccount: external-secrets

charts/bridge-history-fetcher/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Kubernetes: `>=1.22.0-0`
4141
| global.nameOverride | string | `"bridge-history-fetcher"` | |
4242
| image.pullPolicy | string | `"Always"` | |
4343
| image.repository | string | `"scrolltech/bridgehistoryapi-fetcher"` | |
44-
| image.tag | string | `"v4.4.14"` | |
44+
| image.tag | string | `"v4.4.57"` | |
4545
| initContainers.1-check-postgres-connection.args[0] | string | `"postgresql"` | |
4646
| initContainers.1-check-postgres-connection.args[1] | string | `"$(DATABASE_URL)"` | |
4747
| initContainers.1-check-postgres-connection.args[2] | string | `"--timeout"` | |

charts/bridge-history-fetcher/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ controller:
1010
image:
1111
repository: scrolltech/bridgehistoryapi-fetcher
1212
pullPolicy: Always
13-
tag: v4.4.14
13+
tag: v4.4.57
1414

1515
command:
1616
[

charts/bridge-history-fetcher/values/production.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
global:
22
isStandalone: true
33

4+
envFrom:
5+
- secretRef:
6+
name: bridge-history-fetcher-secret-env
7+
48
persistence:
59
# TODO make this consistent with devnet, we should use bridge-history-fetcher-config instead of bridge-history-config
610
bridge-history-fetcher:
@@ -20,7 +24,7 @@ initContainers:
2024
image: atkrad/wait4x:latest
2125
args:
2226
- postgresql
23-
- $(DATABASE_URL)
27+
- $(SCROLL_BRIDGE_HISTORY_DB_DSN)
2428
- --timeout
2529
- "0"
2630
envFrom:
@@ -51,8 +55,8 @@ externalSecrets:
5155
data:
5256
- remoteRef:
5357
key: scroll/bridge-history-fetcher-secret-env
54-
property: DATABASE_URL
55-
secretKey: DATABASE_URL
58+
property: SCROLL_BRIDGE_HISTORY_DB_DSN
59+
secretKey: SCROLL_BRIDGE_HISTORY_DB_DSN
5660
refreshInterval: 2m
5761
serviceAccount: external-secrets
5862
bridge-history-fetcher-migrate-db:

charts/coordinator-api/README.md

Lines changed: 18 additions & 7 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)