Skip to content

Commit 83fe3ac

Browse files
authored
feat: add dealer api key (#8494)
1 parent edf61bc commit 83fe3ac

File tree

5 files changed

+9
-0
lines changed

5 files changed

+9
-0
lines changed

charts/stablesats/templates/stablesats-dealer-deployment.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@ spec:
7373
secretKeyRef:
7474
name: {{ template "stablesats.fullname" . }}
7575
key: "galoy-phone-code"
76+
- name: DEALER_API_KEY
77+
valueFrom:
78+
secretKeyRef:
79+
name: {{ template "stablesats.fullname" . }}
80+
key: "dealer-api-key"
7681
- name: PG_CON
7782
valueFrom:
7883
secretKeyRef:

charts/stablesats/templates/stablesats-secrets.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@ data:
1717
okex-secret-key: {{ .Values.secrets.okexSecretKey | trim | b64enc | trim }}
1818
okex-passphrase: {{ .Values.secrets.okexPassphrase | trim | b64enc | trim }}
1919
galoy-phone-code: {{ .Values.secrets.galoyPhoneCode | trim | b64enc | trim }}
20+
dealer-api-key: {{ .Values.secrets.dealerApiKey | trim | b64enc | trim }}
2021
bria-profile-api-key: {{ .Values.secrets.briaProfileApiKey | trim | b64enc | trim }}
2122
{{- end }}

charts/stablesats/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ secrets:
99
okexSecretKey: ""
1010
okexPassphrase: ""
1111
galoyPhoneCode: ""
12+
dealerApiKey: ""
1213
briaProfileApiKey: ""
1314
stablesats:
1415
priceDeployment:

ci/testflight/stablesats/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ resource "kubernetes_secret" "stablesats" {
6262
okex-secret-key : var.okex_secret_key
6363
okex-passphrase : var.okex_passphrase
6464
galoy-phone-code : data.kubernetes_secret.dealer_creds.data["code"]
65+
dealer-api-key : data.kubernetes_secret.dealer_creds.data["dealer-api-key"]
6566
bria-profile-api-key : data.kubernetes_secret.bria_credentials.data["api-key"]
6667
}
6768
}

dev/stablesats/Tiltfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ k8s_yaml(secret_from_dict(
1818
'okex-secret-key': 'key',
1919
'okex-passphrase': 'passphrase',
2020
'galoy-phone-code': '123456',
21+
'dealer-api-key': 'key',
2122
'bria-profile-api-key': 'key'
2223
}
2324
))

0 commit comments

Comments
 (0)