-
Notifications
You must be signed in to change notification settings - Fork 15
clean(infra/dcp): remove obsolete dcp environment variables and redundant embeddings flags #194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -69,9 +69,6 @@ variable "mcp_instructions_path" { | |
| default = null | ||
| } | ||
|
|
||
| variable "resolve_with_spanner_embeddings" { | ||
| type = bool | ||
| } | ||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| variable "website_search_scope" { | ||
| type = string | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -72,11 +72,6 @@ resource "google_cloud_run_v2_service" "ingestion_helper" { | |
| name = "REDIS_PORT" | ||
| value = var.redis_port | ||
| } | ||
| env { | ||
| name = "ENABLE_UNIQUE_INGESTION_RUNS" | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this ready? |
||
| value = "true" | ||
| # Temporary variable to control changes to the ingestion history table. To be deleted after migration complete. | ||
| } | ||
| } | ||
|
|
||
| dynamic "vpc_access" { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -128,7 +128,7 @@ module "ingestion_preprocessing_job" { | |
| ingestion_artifacts_path = var.ingestion_config.ingestion_artifacts_path | ||
| run_database_init = false | ||
| use_spanner = true | ||
| enable_spanner_embeddings = var.datacommons_services_config.resolve_with_spanner_embeddings | ||
| enable_spanner_embeddings = var.spanner_config.enable_embeddings_generation | ||
| env_vars = local.cloud_run_shared_env_variables | ||
| env_secrets = { | ||
| DC_API_KEY = { | ||
|
|
@@ -286,7 +286,6 @@ module "datacommons_services" { | |
| } | ||
| ]) | ||
| secret_env_vars = local.datacommons_services_secrets | ||
| resolve_with_spanner_embeddings = var.datacommons_services_config.resolve_with_spanner_embeddings | ||
| website_search_scope = var.datacommons_services_config.website_search_scope | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Pass the References
|
||
|
|
||
| depends_on = [module.ingestion_preprocessing_job] | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To adhere to the principle of least privilege, the
roles/aiplatform.userrole should only be granted if both Spanner and embeddings generation are enabled. Granting it unconditionally whenuse_spanneris true could lead to excessive permissions if embeddings generation is disabled.