We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cbb65e commit 3202942Copy full SHA for 3202942
hasadna_k8s/workflows/global_exit_hook.py
@@ -6,7 +6,8 @@
6
7
8
SLACK_WEBHOOK_URL_B64 = os.environ.get('SLACK_WEBHOOK_URL_B64')
9
-ARGO_WORKFLOWS_TOKEN = os.environ.get('ARGO_WORKFLOWS_TOKEN')
+ARGO_WORKFLOWS_TOKEN_B64 = os.environ.get('ARGO_WORKFLOWS_TOKEN_B64')
10
+ARGO_WORKFLOWS_TOKEN = base64.b64decode(ARGO_WORKFLOWS_TOKEN_B64.encode()).decode() if ARGO_WORKFLOWS_TOKEN_B64 else os.environ.get('ARGO_WORKFLOWS_TOKEN')
11
ARGO_WORKFLOWS_URL = os.environ.get('ARGO_WORKFLOWS_URL')
12
13
STATUS = os.environ.get('STATUS')
0 commit comments