Skip to content

Commit

Permalink
Mount tigerdata-secret if it exist
Browse files Browse the repository at this point in the history
  • Loading branch information
ranlu committed Jan 11, 2025
1 parent 1775837 commit 9712ad3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dags/synaptor_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,16 @@

maybe_aws = Variable.get("aws-secret.json", None)
maybe_gcp = Variable.get("google-secret.json", None)
maybe_td = Variable.get("tigerdata-secret.json", None)

mount_variables = ["synaptor_param.json"]

if maybe_aws is not None:
mount_variables.append("aws-secret.json")
if maybe_gcp is not None:
mount_variables.append("google-secret.json")
if maybe_td is not None:
mount_variables.append("tigerdata-secret.json")

# hard-coding these for now
MOUNT_POINT = "/root/.cloudvolume/secrets/"
Expand Down

0 comments on commit 9712ad3

Please sign in to comment.