-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Rag Marketplace output (#323)
* fix jupyter sa and update marketplace outputs
- Loading branch information
1 parent
a9e316e
commit 56762ac
Showing
6 changed files
with
22 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -135,3 +135,4 @@ spec: | |
outputs: | ||
- name: jupyterhub_password | ||
- name: jupyterhub_uri | ||
- name: frontend_uri |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,44 +57,32 @@ resource "kubernetes_annotations" "hub" { | |
namespace = var.namespace | ||
} | ||
annotations = { | ||
"iam.gke.io/gcp-service-account" = "${var.workload_identity_service_account}@${var.project_id}.iam.gserviceaccount.com" | ||
"iam.gke.io/gcp-service-account" = module.jupyterhub-workload-identity.gcp_service_account_email | ||
} | ||
depends_on = [ | ||
helm_release.jupyterhub, | ||
module.jupyterhub-workload-identity | ||
] | ||
} | ||
|
||
data "google_service_account" "sa" { | ||
account_id = var.workload_identity_service_account | ||
depends_on = [ | ||
helm_release.jupyterhub, | ||
module.jupyterhub-workload-identity | ||
] | ||
} | ||
|
||
resource "google_service_account_iam_binding" "hub-workload-identity-user" { | ||
count = var.add_auth ? 1 : 0 | ||
service_account_id = data.google_service_account.sa.name | ||
service_account_id = module.jupyterhub-workload-identity.gcp_service_account | ||
This comment has been minimized.
Sorry, something went wrong.
artemvmin
Collaborator
|
||
role = "roles/iam.workloadIdentityUser" | ||
|
||
members = [ | ||
"serviceAccount:${var.project_id}.svc.id.goog[${var.namespace}/hub]", | ||
"serviceAccount:${var.project_id}.svc.id.goog[${var.namespace}/${var.workload_identity_service_account}]", | ||
] | ||
depends_on = [ | ||
helm_release.jupyterhub, | ||
module.jupyterhub-workload-identity | ||
helm_release.jupyterhub | ||
] | ||
} | ||
|
||
|
||
|
||
resource "google_storage_bucket_iam_member" "gcs-bucket-iam" { | ||
bucket = var.gcs_bucket | ||
role = "roles/storage.objectAdmin" | ||
member = "serviceAccount:${var.workload_identity_service_account}@${var.project_id}.iam.gserviceaccount.com" | ||
depends_on = [module.jupyterhub-workload-identity] | ||
bucket = var.gcs_bucket | ||
role = "roles/storage.objectAdmin" | ||
member = "serviceAccount:${module.jupyterhub-workload-identity.gcp_service_account_email}" | ||
} | ||
|
||
resource "random_password" "generated_password" { | ||
|
Was this intentional? I feel an invalid project is better than a bad default (i.e. a project you don't own).