Skip to content

Commit

Permalink
update infra to support gpu location
Browse files Browse the repository at this point in the history
  • Loading branch information
umeshkumhar committed Mar 5, 2024
1 parent 6593f00 commit 33b6021
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 0 additions & 2 deletions modules/jupyter/jupyter_config/config-selfauth-autopilot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ hub:
namespace: '${namespace}'
service_name: '${service_name}'
project_number: '${project_number}'
# support legacy image
expected_audience: '/projects/${project_number}/global/backendServices/${service_id}'
Authenticator:
admin_users:
- admin
Expand Down
9 changes: 3 additions & 6 deletions modules/jupyter/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,9 @@ resource "helm_release" "jupyterhub" {
ephemeral_storage = var.ephemeral_storage
})
] : [templatefile("${path.module}/jupyter_config/config-selfauth.yaml", {
password = var.add_auth ? "dummy" : random_password.generated_password[0].result
project_id = var.project_id
project_number = data.google_project.project.number

# Support legacy image.
service_id = "" # TODO(umeshkumhar): var.add_auth ? (data.google_compute_backend_service.jupyter-ingress[0].generated_id != null ? data.google_compute_backend_service.jupyter-ingress[0].generated_id : "no-id-yet") : "no-id-yet"
password = var.add_auth ? "dummy" : random_password.generated_password[0].result
project_id = var.project_id
project_number = data.google_project.project.number
namespace = var.namespace
backend_config = var.k8s_backend_config_name
service_name = var.k8s_backend_service_name
Expand Down

0 comments on commit 33b6021

Please sign in to comment.