Skip to content

Commit

Permalink
expose secret key
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasochem committed Dec 10, 2023
1 parent 8cb3b5c commit c668884
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 1 addition & 3 deletions charts/tezos/templates/octez-baker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ spec:
name: tezos-config
env:
- name: MY_POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
value: {{ $k }}
- name: MY_POD_TYPE
value: baker
volumeMounts:
Expand Down
3 changes: 3 additions & 0 deletions utils/config-generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,9 @@ def expose_secret_key(account_name):
if MY_POD_TYPE == "rollup":
return account_name == MY_POD_CONFIG.get("operator_account")

if MY_POD_TYPE == "baker":
return account_name in MY_POD_CONFIG.get("bake_using_accounts")

if MY_POD_TYPE == "node":
if MY_POD_CONFIG.get("bake_using_account", "") == account_name:
return True
Expand Down

0 comments on commit c668884

Please sign in to comment.