Skip to content

Commit

Permalink
Add ARGO_NAMESPACE to env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
iameskild committed Jul 19, 2023
1 parent c21afa4 commit 80bf287
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ def profile_argo_token(groups):
# TODO: create a more robust check user's Argo-Workflow role

domain = z2jh.get_config("custom.external-url")
namespace = z2jh.get_config("custom.namespace")

ADMIN = "admin"
DEVELOPER = "developer"
Expand All @@ -335,6 +336,7 @@ def profile_argo_token(groups):
return {
"ARGO_BASE_HREF": "/argo",
"ARGO_SERVER": f"{domain}:443",
"ARGO_NAMESPACE": namespace,
"ARGO_TOKEN": {
"valueFrom": {
"secretKeyRef": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ resource "helm_release" "jupyterhub" {
jsonencode({
# custom values can be accessed via z2jh.get_config('custom.<path>')
custom = {
namespace = var.namespace
external-url = var.external-url
theme = var.theme
profiles = var.profiles
Expand Down

0 comments on commit 80bf287

Please sign in to comment.