Skip to content

Commit

Permalink
introduce zenpy netloc environment variable for replacing zendesk
Browse files Browse the repository at this point in the history
  • Loading branch information
sekharpanja committed Sep 20, 2023
1 parent d606f88 commit 05b3bba
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions dataworkspace/dataworkspace/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ def aws_fargate_private_ip():
ZENDESK_SERVICE_FIELD_ID = env["ZENDESK_SERVICE_FIELD_ID"]
ZENDESK_SERVICE_FIELD_VALUE = env["ZENDESK_SERVICE_FIELD_VALUE"]

ZENPY_FORCE_NETLOC = env["ZENPY_FORCE_NETLOC"]

NOTIFY_API_KEY = env["NOTIFY_API_KEY"]
FERNET_EMAIL_TOKEN_KEY = env["FERNET_EMAIL_TOKEN_KEY"]
Expand Down
1 change: 1 addition & 0 deletions infra/ecs_main_admin.tf
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ locals {
zendesk_token = "${var.zendesk_token}"
zendesk_service_field_id = "${var.zendesk_service_field_id}"
zendesk_service_field_value = "${var.zendesk_service_field_value}"
zenpy_force_netloc = "${var.zenpy_force_netloc}"

prometheus_domain = "${var.prometheus_domain}"
metrics_service_discovery_basic_auth_user = "${var.metrics_service_discovery_basic_auth_user}"
Expand Down
4 changes: 4 additions & 0 deletions infra/ecs_main_admin_container_definitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -936,6 +936,10 @@
"name": "ZENDESK_SERVICE_FIELD_VALUE",
"value": "${zendesk_service_field_value}"
},
{
"name": "ZENPY_FORCE_NETLOC",
"value": "${zenpy_force_netloc}"
},
{
"name": "QUICKSIGHT_NAMESPACE",
"value": "${quicksight_namespace}"
Expand Down
1 change: 1 addition & 0 deletions infra/environment-template/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ module "jupyterhub" {
zendesk_token = "REPLACE_ME"
zendesk_service_field_id = "REPLACE_ME"
zendesk_service_field_value = "REPLACE_ME"
zenpy_force_netloc = "REPLACE_ME"

prometheus_whitelist = []
metrics_service_discovery_basic_auth_user = "REPLACE_ME"
Expand Down
1 change: 1 addition & 0 deletions infra/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ variable zendesk_subdomain {}
variable zendesk_token {}
variable zendesk_service_field_id {}
variable zendesk_service_field_value {}
variable zenpy_force_netloc {}

variable prometheus_whitelist {
type = list
Expand Down

0 comments on commit 05b3bba

Please sign in to comment.